diff --git a/rpc/user.go b/rpc/user.go index de22c8fae37d9c96d111ba93be740f572f4eb5de..cccc9781f8e25fcfecc73e13b9a3e315fab5c154 100644 --- a/rpc/user.go +++ b/rpc/user.go @@ -51,6 +51,8 @@ type CvUserLevel struct { UserId mysql.ID `json:"userId"` // 用户id WealthUserGrade uint32 `json:"wealthUserGrade"` //财富等级 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 UserId: level.UserId, WealthUserGrade: level.WealthUserGrade, CharmUserGrade: level.CharmUserGrade, + ActiveUserGrade: level.ActiveUserGrade, + NobleLevel: level.NobleLevel, } } return res, nil