| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace app\agent\controller\order;
- use app\common\controller\AgentController;
- use app\http\IResponse;
- use Lettered\Support\Auth as IAuth;
- use think\App;
- class Skill extends AgentController
- {
- protected $model;
- /**
- * Skill constructor.
- * @param App|null $app
- * @param IAuth $auth
- */
- public function __construct(App $app = null, IAuth $auth)
- {
- parent::__construct($app, $auth);
- $this->model = new \app\agent\model\order\Skill();
- }
- /**
- * @desc desc
- * @return mixed
- * @throws \think\exception\DbException
- * @author weichuanbao<654745815@qq.com>
- * @date 2021/12/10 0010
- */
- public function index()
- {
- $where[] = ['area_id', 'eq', $this->auth->user()->area_id];
- return IResponse::paginate($this->model->where($where)->with(['skill','user','service'])
- ->order(['created_at' => 'desc'])
- ->paginate(input('limit'),false));
- }
- }
|