123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace app\admin\controller\sys_manage;
- use app\admin\validate\sys_manage\AdvValidate;
- use app\controller\Curd;
- use app\model\Adv;
- use app\model\SysLog;
- use support\Request;
- use support\Response;
- class LogsController extends Curd
- {
- public function __construct()
- {
- $this->model = new SysLog();
- }
- /** 列表
- * @Desc
- * @Author Gorden
- * @Date 2024/3/5 10:00
- *
- * @param Request $request
- * @return Response
- * @throws \support\exception\BusinessException
- */
- public function select(Request $request): Response
- {
- [$where, $format, $limit, $field, $order] = $this->selectInput($request);
- $order = $request->get('order', 'desc');
- $field = $field ?? 'log_create_time';
- $query = $this->doSelect($where, $field, $order);
- return $this->doFormat($query, $format, $limit);
- }
- }
|