| 123456789101112131415161718192021222324 | 
							- <?php
 
- namespace app\common\model;
 
- use think\Db;
 
- class Group extends Base
 
- {
 
-     public function updates(){
 
-         $data = request()->post();
 
-         $data['org_id'] = cur_org_id();
 
-         return $this->updateInfo($data,'Group','');
 
-     }
 
-     public function getList(){
 
-         $list = $this
 
-             ->where('enable',1)
 
-             ->where('org_id',cur_org_id())
 
-             ->field('id,title')
 
-             ->select();
 
-         $list = $list?$list->toArray():[];
 
-         return $list;
 
-     }
 
- }
 
 
  |