| 12345678910111213141516171819 | 
							- <?php
 
- namespace app\common\model;
 
- use \think\Model;
 
- class SysRole extends Model
 
- {
 
-     protected $pk = 'roleid';
 
-     public function getIdNameList()
 
-     {
 
-         return $this->column('id, name');
 
-     }
 
-     public function getpermissionIds($id)
 
-     {
 
-         return $this->where('id', $id)->value('permissions');
 
-     }
 
- }
 
 
  |