设备分配组织

This commit is contained in:
XM-GO
2023-09-15 17:27:57 +08:00
parent 6562991f90
commit a0af16527e
3 changed files with 28 additions and 3 deletions

View File

@@ -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, "查询角色数据权限失败")