|
@@ -27,6 +27,8 @@ type SessUserInfo struct {
|
|
|
Phone string
|
|
|
MgoUserId string
|
|
|
UserId string
|
|
|
+ EntAccountId int64
|
|
|
+ EntUserId int64
|
|
|
OpenId string //wx openid
|
|
|
Nickname string //昵称
|
|
|
Avatar string //头像
|
|
@@ -36,14 +38,16 @@ type SessUserInfo struct {
|
|
|
func GetUserBaseInfo(sess *httpsession.Session) SessUserInfo {
|
|
|
getSession := sess.GetMultiple()
|
|
|
return SessUserInfo{
|
|
|
- MgoUserId: util.ObjToString(getSession["mgoUserId"]),
|
|
|
BaseUserId: util.Int64All(getSession["base_user_id"]),
|
|
|
AccountId: util.Int64All(getSession["accountId"]),
|
|
|
EntId: util.Int64All(getSession["entId"]),
|
|
|
PositionType: util.Int64All(getSession["positionType"]),
|
|
|
PositionId: util.Int64All(getSession["positionId"]),
|
|
|
Phone: util.ObjToString(getSession["phone"]),
|
|
|
+ MgoUserId: util.ObjToString(getSession["mgoUserId"]),
|
|
|
UserId: util.ObjToString(getSession["userId"]),
|
|
|
+ EntAccountId: util.Int64All(getSession["entAccountId"]),
|
|
|
+ EntUserId: util.Int64All(getSession["entUserId"]),
|
|
|
OpenId: util.ObjToString(getSession["s_m_openid"]),
|
|
|
Nickname: util.ObjToString(getSession["s_nickname"]),
|
|
|
Avatar: util.ObjToString(getSession["s_avatar"]),
|