userWithdrawEvent.go 1.3 KB

12345678910111213141516171819202122232425
  1. package eventmodels
  2. import "github.com/mhaya/game/game_cluster/internal/constant"
  3. // 用户提现事件
  4. type UserWithdrawEventContent struct {
  5. UserBasic
  6. EventBasic
  7. WithdrawId string `json:"withdraw_id"` // 提现记录id
  8. Currency constant.CurrencyTypeStr `json:"currency"` // 货币类型
  9. Ip string `json:"ip"` // IP
  10. Platform string `json:"platform"` // 平台
  11. Channel string `json:"channel"` // 渠道
  12. Address string `json:"address"` // 提现地址
  13. BeforeBalance int64 `json:"before_balance"` // 提现前余额
  14. Amount int64 `json:"amount"` // 提现金额
  15. AfterBalance int64 `json:"after_balance"` // 提现后余额
  16. Reason string `json:"reason"` // 提现原因
  17. State int `json:"state"` // 服务器是否已经处理 0 未处理 1已处理
  18. WithdrawalState int `json:"withdrawal_state"` // 提现 0 :未体现 1:提现成功 2:提现中 3:提现失败 4:拒绝提现
  19. }
  20. func (e *UserWithdrawEventContent) EventName() string {
  21. return "UserWithdraw"
  22. }