add(); HelpHander::success([],'操作成功'); } // 编辑 public function update(){ model('AppMgr')->add(); HelpHander::success([],'操作成功'); } // 详情 public function detail(){ $id = input('id/d',0); $ret = model('AppMgr')->info($id); HelpHander::success($ret); } // 列表 public function list(){ $page = input('page/d',1); $size = input('size/d',10); $type = input('type/d',10); $ret = model('AppMgr')->lists($page,$size,$type); HelpHander::success($ret); } // 删除 public function del(){ $id = input('id/d',0); model('AppMgr')->del($id); HelpHander::success([],'操作成功'); } // 修改状态 public function enableMgr(){ $id = input('id/d',0); $enable = input('enable/d',0); model('AppMgr')->changeStatus($id,$enable,$this->orgId); HelpHander::success([],'操作成功'); } public function newAppMgr(){ $ret = model('AppMgr')->appMgr(1); HelpHander::success($ret); } public function newIosMgr(){ $ret = model('AppMgr')->appMgr(2); $ret = $ret?$ret:null; HelpHander::success($ret); } }