| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- namespace App\Http\Controllers\Admin;
- use App\Services\Common\JobsService;
- /**
- * 招聘信息控制器
- */
- class JobsController extends Backend
- {
- public function __construct()
- {
- parent::__construct();
- $this->service = new JobsService();
- }
- /**
- * 列表
- */
- public function index()
- {
- $params = request()->all();
- $pageSize = isset($params['limit']) ? intval($params['limit']) : PERPAGE;
- return $this->service->getDataList($params, $pageSize, $this->storeId);
- }
- /**
- * 添加
- */
- public function add()
- {
- return $this->service->add($this->storeId);
- }
- /**
- * 编辑
- */
- public function edit()
- {
- return $this->service->edit([], $this->storeId);
- }
- /**
- * 审核
- */
- public function confirm()
- {
- return $this->service->confirm();
- }
- /**
- * 删除
- */
- public function delete()
- {
- return $this->service->delete($this->storeId);
- }
- /**
- * 修改状态
- */
- public function status()
- {
- return $this->service->status();
- }
- /**
- * 获取详情
- */
- public function info()
- {
- $id = request()->get('id');
- return $this->service->getInfo($id, $this->storeId);
- }
- }
|