| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace App\Http\Controllers\Admin;
- use App\Services\Exam\TopicService;
- /**
- * 题目管理-控制器
- */
- class TopicController extends Backend
- {
- public function __construct()
- {
- parent::__construct();
- $this->service = TopicService::make();
- }
- public function index()
- {
- $pageSize = request()->get('limit', 10);
- $list = $this->service->customList(request()->all(), $pageSize);
- $message = array(
- "msg" => '操作成功',
- "code" => 0,
- "data" => isset($list['list']) ? $list['list'] : [],
- "count" => isset($list['total']) ? $list['total'] : 0,
- );
- return $message;
- }
- public function sort()
- {
- $param = request()->all();
- return $this->service->sort($param);
- }
- }
|