From 4123e7ec95c3dcd6f222469b2d9f5c6d1c5a96fa Mon Sep 17 00:00:00 2001 From: hujiebin Date: Wed, 19 Apr 2023 17:58:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A4=9A=E5=8A=A0=E4=B8=A4=E4=B8=AAlevel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rpc/user.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpc/user.go b/rpc/user.go index de22c8f..cccc978 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 -- 2.22.0