1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace app\admin\controller;
- use app\admin\common\AdminController;
- use app\common\api\DictApi;
- /**
- * Description of Dict
- *
- * @author sgq
- */
- class Dict extends AdminController {
- /**
- * @auth {{/dict}}
- * @return type
- */
- public function index() {
- return view();
- }
- /**
- * @auth {{/dict/list}}
- * @return type
- */
- public function list() {
- $res = DictApi::getList($this->request);
- return json($res);
- }
- /**
- * @auth {{/dict/add}}
- * @return type
- */
- public function add() {
- if ($this->request->isPost()) {
- return json(DictApi::create($this->request->param()));
- }
- return view();
- }
- /**
- * @auth {{/dict/update}}
- * @return type
- */
- public function edit() {
- return view();
- }
- /**
- * @auth {{/dict/delete}}
- * @return type
- */
- public function delete() {
-
- }
- }
|