| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\common\model;
- class AuthGroupAccessModel extends BaseModel
- {
- protected $table = 'erp_auth_group_access';
- protected function genSchema(array $schema)
- {
- // TODO: Implement genSchema() method.
- }
- public function group()
- {
- return self::hasOne(AuthGroupModel::class,'id','group_id');
- }
- public function findByAdminId($admin_id) {
- return $this->where([
- ['is_delete', '=', 0],
- ['admin_id','=',$admin_id]
- ])->find();
- }
- }
|