瀏覽代碼

update 事件增加事件状态字段

Alvin 8 月之前
父節點
當前提交
9e022d437b

+ 5 - 3
game/game_cluster/internal/mdb/eventmodels/basic.go

@@ -1,9 +1,11 @@
 package eventmodels
 package eventmodels
 
 
 type EventBasic struct {
 type EventBasic struct {
-	ServerId  string `json:"serverId"`  // 服务id或者nodeid
-	IsSuccess bool   `json:"is_uccess"` // 事件结果
-	CreateAt  int64  `json:"create_at"` // 事件创建时间戳
+	ServerId         string `json:"serverId"`           // 服务id或者nodeid
+	IsSuccess        bool   `json:"is_uccess"`          // http响应结果
+	Status           int    `json:"status"`             // 事件状态
+	RewardDrawStatus int    `json:"reward_draw_status"` // 奖励领取状态
+	CreateAt         int64  `json:"create_at"`          // 事件创建时间戳
 }
 }
 
 
 type UserBasic struct {
 type UserBasic struct {

+ 11 - 12
game/game_cluster/internal/mdb/eventmodels/userWithdrawEvent.go

@@ -4,18 +4,17 @@ package eventmodels
 type UserWithdrawEventContent struct {
 type UserWithdrawEventContent struct {
 	UserBasic
 	UserBasic
 	EventBasic
 	EventBasic
-	WithdrawId      string `json:"withdraw_id"`      // 提现记录id
-	Currency        string `json:"currency"`         // 货币类型
-	Ip              string `json:"ip"`               // IP
-	Platform        string `json:"platform"`         // 平台
-	Channel         string `json:"channel"`          // 渠道
-	Address         string `json:"address"`          // 提现地址
-	BeforeBalance   int64  `json:"before_balance"`   // 提现前余额
-	Amount          int64  `json:"amount"`           // 提现金额
-	AfterBalance    int64  `json:"after_balance"`    // 提现后余额
-	Reason          string `json:"reason"`           // 提现原因
-	State           int    `json:"state"`            // 服务器是否已经处理 0 未处理 1已处理
-	WithdrawalState int    `json:"withdrawal_state"` // 提现 0 :未体现 1:提现成功 2:提现中 3:提现失败 4:拒绝提现
+	WithdrawId    string `json:"withdraw_id"`    // 提现记录id
+	Currency      string `json:"currency"`       // 货币类型
+	Ip            string `json:"ip"`             // IP
+	Platform      string `json:"platform"`       // 平台
+	Channel       string `json:"channel"`        // 渠道
+	Address       string `json:"address"`        // 提现地址
+	BeforeBalance int64  `json:"before_balance"` // 提现前余额
+	Amount        int64  `json:"amount"`         // 提现金额
+	AfterBalance  int64  `json:"after_balance"`  // 提现后余额
+	Reason        string `json:"reason"`         // 提现原因
+	State         int    `json:"state"`          // 服务器是否已经处理 0 未处理 1已处理
 }
 }
 
 
 func (e *UserWithdrawEventContent) EventName() string {
 func (e *UserWithdrawEventContent) EventName() string {