12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class Subsidiary extends Base
- {
- // 新增/编辑
- public function save(){
- model('Subsidiary')->add();
- HelpHander::success([],'操作成功');
- }
- // 删除
- public function del(){
- $id = input('id/d',0);
- model('Subsidiary')->del($id);
- HelpHander::success([],'操作成功');
- }
- //列表
- public function list(){
- $ret = model('Subsidiary')->lists($this->orgId);
- HelpHander::success($ret);
- }
- }
|