Commit 4123e7ec authored by hujiebin's avatar hujiebin

feat:多加两个level

parent e7975c9e
...@@ -51,6 +51,8 @@ type CvUserLevel struct { ...@@ -51,6 +51,8 @@ type CvUserLevel struct {
UserId mysql.ID `json:"userId"` // 用户id UserId mysql.ID `json:"userId"` // 用户id
WealthUserGrade uint32 `json:"wealthUserGrade"` //财富等级 WealthUserGrade uint32 `json:"wealthUserGrade"` //财富等级
CharmUserGrade uint32 `json:"charmUserGrade"` //魅力等级 CharmUserGrade uint32 `json:"charmUserGrade"` //魅力等级
ActiveUserGrade uint32 `json:"activeUserGrade"` // 活跃等级
NobleLevel uint16 `json:"nobleLevel"` // 贵族等级
} }
// 获取用户等级 // 获取用户等级
...@@ -95,6 +97,8 @@ func MGetUserLevel(model *domain.Model, userIds []mysql.ID) (map[mysql.ID]CvUser ...@@ -95,6 +97,8 @@ func MGetUserLevel(model *domain.Model, userIds []mysql.ID) (map[mysql.ID]CvUser
UserId: level.UserId, UserId: level.UserId,
WealthUserGrade: level.WealthUserGrade, WealthUserGrade: level.WealthUserGrade,
CharmUserGrade: level.CharmUserGrade, CharmUserGrade: level.CharmUserGrade,
ActiveUserGrade: level.ActiveUserGrade,
NobleLevel: level.NobleLevel,
} }
} }
return res, nil return res, nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment