123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- class ApprovalCate extends Base
- {
- // 新增
- public function save(){
- model('ApprovalCate')->add();
- HelpHander::success([],'操作成功');
- }
- // 编辑
- public function update(){
- model('ApprovalCate')->add();
- HelpHander::success([],'操作成功');
- }
- // 详情
- public function detail(){
- $id = input('id/d',0);
- $ret = model('ApprovalCate')->info($id);
- HelpHander::success($ret);
- }
- // 列表
- public function list(){
- $ret = model('ApprovalCate')->lists($this->orgId);
- HelpHander::success($ret);
- }
- // 删除
- public function del(){
- $id = input('id/d',0);
- model('ApprovalCate')->del($id,$this->orgId);
- HelpHander::success([],'操作成功');
- }
- // 流程类别和流程数据封装树状结构查询
- public function approvalCateGroup(){
- $ret = model('ApprovalCate')->approvalCateGroup($this->orgId);
- HelpHander::success($ret,'操作成功');
- }
- }
|