// +---------------------------------------------------------------------- namespace App\Services\Common; use App\Models\ConfigGroupModel; use App\Services\BaseService; /** * 配置分组-服务类 * @author laravel开发员 * @since 2020/11/11 * Class ConfigGroupService * @package App\Services\Common */ class ConfigGroupService extends BaseService { /** * 构造函数 * @author laravel开发员 * @since 2020/11/11 * ConfigGroupService constructor. */ public function __construct() { $this->model = new ConfigGroupModel(); } public function getList() { return parent::getList('',[['sort', 'asc']]); // TODO: Change the autogenerated stub } /** * 删除 * @return array */ public function delete() { $this->model->where(['mark'=>0])->where('update_time','<=', time() - env('DELETE_EXPIRED', 0))->delete(); return parent::delete(); // TODO: Change the autogenerated stub } }