userWithdrawEvent.go 876 B

123456789101112131415161718192021
  1. package eventmodels
  2. import "github.com/mhaya/game/game_cluster/internal/constant"
  3. // 用户提现事件
  4. type UserWithdrawEventContent struct {
  5. UserBasic
  6. EventBasic
  7. Currency constant.CurrencyTypeStr `json:"currency"` // 货币类型
  8. Ip string `json:"ip"` // IP
  9. Platform string `json:"platform"` // 平台
  10. Channel string `json:"channel"` // 渠道
  11. Address string `json:"address"` // 提现地址
  12. BeforeBalance int64 `json:"before_balance"` // 提现前余额
  13. Amount int64 `json:"amount"` // 提现金额
  14. AfterBalance int64 `json:"after_balance"` // 提现后余额
  15. }
  16. func (e *UserWithdrawEventContent) EventName() string {
  17. return "UserWithdraw"
  18. }