request->param()); return json($res); } /** * @auth {{/notice/add}} * @return type */ public function add() { if ($this->request->isPost()) { try { } catch (\think\exception $e) { return json(["msg" => $e->getMessage()]); } NoticeApi::update($this->request->param()); exit(); } return view(); } /** * @auth {{/notice/update}} * @return type */ public function edit() { if ($this->request->isPost()) { exit(); } return view(); } /** * @auth {{/notice/delete}} * @return type */ public function delete() { if ($this->request->isPost()) { $params = $this->request->param(); $id = $params["id"]; } } }