| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- // +----------------------------------------------------------------------
- // | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
- // +----------------------------------------------------------------------
- // | 版权所有 2017~2021 LARAVEL研发中心
- // +----------------------------------------------------------------------
- // | 官方网站: http://www.laravel.cn
- // +----------------------------------------------------------------------
- // | Author: laravel开发员 <laravel.qq.com>
- // +----------------------------------------------------------------------
- namespace App\Http\Controllers\Admin;
- use App\Services\Common\InstitutionService;
- /**
- * 院校管理-控制器
- * @author laravel开发员
- * @since 2024/01/08
- * Class InstitutionController
- * @package App\Http\Controllers\Admin
- */
- class InstitutionController extends Backend
- {
- /**
- * 构造函数
- * @author laravel开发员
- * @since 2024/01/08
- * InstitutionController constructor.
- */
- public function __construct()
- {
- parent::__construct();
- $this->service = new InstitutionService();
- }
- /**
- * 列表
- * @return array
- */
- public function index()
- {
- $pageSize = request()->get('limit', 10);
- $list = $this->service->getDataList(request()->all(), $pageSize);
- $message = array(
- "msg" => '操作成功',
- "code" => 0,
- "data" => isset($list['list']) ? $list['list'] : [],
- "count" => isset($list['total']) ? $list['total'] : 0,
- );
- return $message;
- }
- /**
- * 选项列表
- * @return mixed
- */
- public function options()
- {
- $result = $this->service->options();
- return message(1002, true, $result);
- }
- /**
- * 设置排序
- * @return mixed
- */
- public function sort()
- {
- $result = $this->service->sort();
- return $result;
- }
- }
|