mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-12 14:52:07 +08:00
[优化]
This commit is contained in:
@@ -67,7 +67,6 @@ func OrgAuthSet(tx *gorm.DB, roleId int64, owner string) {
|
||||
if roleId == 0 {
|
||||
return
|
||||
}
|
||||
//TODO 使用缓存
|
||||
role, err := services.SysRoleModelDao.FindOrganizationsByRoleId(roleId)
|
||||
biz.ErrIsNil(err, "查询角色数据权限失败")
|
||||
if role.DataScope != entity.SELFDATASCOPE {
|
||||
|
||||
@@ -8,7 +8,6 @@ type BaseModel struct {
|
||||
Id string `json:"id" gorm:"primary_key;"`
|
||||
CreatedAt time.Time `gorm:"column:create_time" json:"createTime" form:"create_time"`
|
||||
UpdatedAt time.Time `gorm:"column:update_time" json:"updateTime" form:"update_time"`
|
||||
OrgId int64 `json:"orgId" gorm:"type:int;comment:机构ID"`
|
||||
}
|
||||
|
||||
type BaseAuthModel struct {
|
||||
|
||||
Reference in New Issue
Block a user