apeblog/app/admin/controller/Slides.php

51 lines
1.1 KiB
PHP

<?php
namespace app\admin\controller;
use app\admin\model\Slides as aModel;
use app\Request;
use app\admin\services\UtilService as Util;
/**
* Class Slides
* @package app\admin\controller\system
* @author 李玉坤
* @date 2021-02-15 23:20
*/
class Slides extends AuthController
{
/**
* 幻灯片管理
* @return string
* @throws \Exception
* @author 李玉坤
* @date 2021-02-16 13:15
*/
public function index()
{
return $this->fetch();
}
/**
* 文章列表
* @param Request $request
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 李玉坤
* @date 2021-02-15 23:26
*/
public function lst(Request $request)
{
$where = Util::postMore([
['title',''],
['start_time',''],
['end_time',''],
['status',''],
['page',1],
['limit',20],
]);
return app("json")->layui(aModel::systemPage($where));
}
}