12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- class Important extends Base
- {
- // 新增/编辑
- public function save(){
- model('Important')->add();
- HelpHander::success([],'操作成功');
- }
- // 详情
- public function detail(){
- $id = input('id/d',0);
- $ret = model('Important')->info($id);
- HelpHander::success($ret);
- }
- // 列表
- public function list(){
- $ret = model('Important')->lists($this->orgId);
- HelpHander::success($ret);
- }
- // 导出
- public function listExport(){
- $ret = model('Important')->listExport($this->orgId);
- HelpHander::success($ret);
- }
- // 删除
- public function del(){
- $id = input('id/d',0);
- model('Important')->del($id);
- HelpHander::success([],'操作成功');
- }
- // 办结
- public function finish(){
- $id = input('id/d',0);
- model('Important')->finish($id);
- HelpHander::success([],'操作成功');
- }
- }
|