mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
设备分配组织
This commit is contained in:
@@ -67,6 +67,9 @@ func (m *DeviceAuth) UnmarshalBinary(data []byte) error {
|
||||
}
|
||||
|
||||
func OrgAuthSet(tx *gorm.DB, roleId int64, owner string) {
|
||||
if roleId == 0 {
|
||||
return
|
||||
}
|
||||
//TODO 使用缓存
|
||||
role, err := services.SysRoleModelDao.FindOrganizationsByRoleId(roleId)
|
||||
biz.ErrIsNil(err, "查询角色数据权限失败")
|
||||
|
||||
Reference in New Issue
Block a user