update user and roles model
This commit is contained in:
@@ -152,6 +152,14 @@ class User extends Model implements Authenticatable
|
||||
return $this->hasMany(Platform::class, 'developer_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户的数据访问范围
|
||||
*/
|
||||
public function dataScopes(): HasMany
|
||||
{
|
||||
return $this->hasMany(UserDataScope::class, 'user_id');
|
||||
}
|
||||
|
||||
// @TODO 重新实现删除用户时平台归属转移逻辑(Hyperf 不支持 static::deleting 事件绑定)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user