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 DataNotFoundException * @throws DbException * @throws 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)); } }