Prechádzať zdrojové kódy

Merge branch 'feature/v1.2.22_ws' of BaseService/userCenter into feature/v1.2.22

wangshan 1 rok pred
rodič
commit
1abd5d27c7
1 zmenil súbory, kde vykonal 12 pridanie a 0 odobranie
  1. 12 0
      entity/user.go

+ 12 - 0
entity/user.go

@@ -130,6 +130,12 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 			if m.PositionType > 0 {
 				UserPowerMap["901"] = 1
 			}
+			switch entInfo.EntRoleId {
+			case 1: //企业管理员
+				UserPowerMap["902"] = 1
+			case 2: //部门管理员
+				UserPowerMap["903"] = 1
+			}
 		}
 		if entNiche.Status > 0 && entNiche.IsEntPower > 0 {
 			//entInfo.EntRoleId 1:企业管理员 2:部门管理员
@@ -183,6 +189,12 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 				//新免费用户
 				UserPowerMap["301"] = MC.If(free.IsUpgrade, 1, 0).(int)
 			}
+			switch entInfo.EntRoleId {
+			case 1: //企业管理员
+				UserPowerMap["302"] = 1
+			case 2: //部门管理员
+				UserPowerMap["303"] = 1
+			}
 		}
 		//----------其他-----------
 		//广东移动DICT