model = new aModel(); } /** * 留言管理 * @return string * @throws \Exception * @author 李玉坤 * @date 2021-02-19 11:53 */ 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-19 11:54 */ public function lst(Request $request) { $where = Util::postMore([ ['author', ''], ['tel', ''], ['email', ''], ['start_time', ''], ['end_time', ''], ['page', 1], ['limit', 20], ]); return app("json")->layui(aModel::systemPage($where)); } }