wangchuanjin 1 rok pred
rodič
commit
c7bcd94205
1 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 6 0
      identity/identity.go

+ 6 - 0
identity/identity.go

@@ -21,6 +21,8 @@ type IdentityInfo struct {
 	EntId        int64  //企业id
 	EntUserId    int64  //企业员工id
 	EntUserName  string //企业员工姓名
+	EntRole      int64  //管理员角色
+	EntNicheDis  int64  //商机分配角色
 }
 
 func NewIdentityInfo(i *pb.Identity) *IdentityInfo {
@@ -35,6 +37,8 @@ func NewIdentityInfo(i *pb.Identity) *IdentityInfo {
 		EntId:        i.EntId,
 		EntUserId:    i.EntUserId,
 		EntUserName:  i.EntUserName,
+		EntRole:      i.EntRole,
+		EntNicheDis:  i.EntNicheDis,
 	}
 }
 
@@ -63,6 +67,8 @@ func (i *IdentityInfo) Switch(sess *httpsession.Session, mgo *MongodbSim) bool {
 		m["frameworkEntName"] = i.Name
 		m["userId"] = strconv.FormatInt(i.PositionId, 10)
 		m["entAccountId"] = i.EntAccountId
+		m["entRole"] = i.EntRole
+		m["entNicheDis"] = i.EntNicheDis
 		ok = true
 	}
 	sess.SetMultiple(m)