Преглед изворни кода

update 修改用户信息更改事件字段

Alvin пре 8 месеци
родитељ
комит
f58b36a800

+ 16 - 16
game/game_cluster/internal/mdb/eventmodels/userUpdateInfoEvent.go

@@ -4,22 +4,22 @@ package eventmodels
 type UserUpdateInfoEventContent struct {
 	UserBasic
 	EventBasic
-	UserName    string `json:"user_name"`   // 用户昵称
-	TgId        string `json:"tg_id"`       // 绑定tgid
-	XId         string `json:"x_id"`        // 绑定推特ID
-	TonWall     string `json:"ton_wall"`    // 绑定钱包地址
-	Fingerprint string `json:"fingerprint"` // 绑定指纹数据
-	Email       string `json:"email"`       // 邮箱
-	Mobile      string `json:"mobile"`      // 手机号
-	Avatar      string `json:"avatar"`      // 头像
-	Birthday    string `json:"birthday"`    // 生日
-	Password    string `json:"password"`    // 账户密码 仅记录该操作,不记录内容
-	Salt        string `json:"salt"`        // 密码盐 仅记录该操作,不记录内容
-	IsLeader    bool   `json:"is_leader"`   // 是否是社区长
-	IsVip       bool   `json:"is_vip"`      // 是否为VIP
-	Level       int    `json:"level"`       // 等级
-	Exp         int    `json:"exp"`         // 经验
-	Gender      int    `json:"gender"`      // 性别
+	UpdateUserName    string `json:"update_user_name"`   // 用户昵称
+	UpdateTgId        string `json:"update_tg_id"`       // 绑定tgid
+	UpdateXId         string `json:"update_x_id"`        // 绑定推特ID
+	UpdateTonWall     string `json:"update_ton_wall"`    // 绑定钱包地址
+	UpdateFingerprint string `json:"update_fingerprint"` // 绑定指纹数据
+	UpdateEmail       string `json:"update_email"`       // 邮箱
+	UpdateMobile      string `json:"update_mobile"`      // 手机号
+	UpdateAvatar      string `json:"update_avatar"`      // 头像
+	UpdateBirthday    string `json:"update_birthday"`    // 生日
+	UpdatePassword    string `json:"update_password"`    // 账户密码 仅记录该操作,不记录内容
+	UpdateSalt        string `json:"update_salt"`        // 密码盐 仅记录该操作,不记录内容
+	UpdateIsLeader    bool   `json:"update_is_leader"`   // 是否是社区长
+	UpdateIsVip       bool   `json:"update_is_vip"`      // 是否为VIP
+	UpdateLevel       int    `json:"update_level"`       // 等级
+	UpdateExp         int    `json:"update_exp"`         // 经验
+	UpdateGender      int    `json:"update_gender"`      // 性别
 }
 
 func (e *UserUpdateInfoEventContent) EventName() string {

+ 2 - 2
game/game_cluster/nodes/webadmin/service/playerMange.go

@@ -622,14 +622,14 @@ func (a *PlayerManage) PlayerInfo(ctx context.Context, req entity.PlayerInfoReq)
 			return 0
 		}(),
 		IsLeader: func() int {
-			if updateRecord != nil && updateRecord.IsLeader {
+			if updateRecord != nil && updateRecord.UpdateIsLeader {
 				return 1
 			}
 
 			return 0
 		}(),
 		IsVip: func() int {
-			if updateRecord != nil && updateRecord.IsVip {
+			if updateRecord != nil && updateRecord.UpdateIsVip {
 				return 1
 			}