| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 | 
							- <?php
 
- namespace app\admin\controller;
 
- use app\admin\common\AdminController;
 
- use app\common\api\NoticeApi;
 
- /**
 
-  * Description of Notice
 
-  *
 
-  * @author sgq
 
-  */
 
- class Notice extends AdminController {
 
-     public function index() {
 
-         return view();
 
-     }
 
-     public function list() {
 
-         $res = NoticeApi::getList($this->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"];
 
-         }
 
-     }
 
- }
 
 
  |