user_withdrawal.go 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package entity
  2. type UserWithdrawalResp struct {
  3. Details []*UserWithdrawalDetail `json:"details"`
  4. Total int64 `json:"total"`
  5. }
  6. // UserWithdrawalResp \database\game_cluster\nodes\adminapi\entity\user_withdrawal.go
  7. type UserWithdrawalDetail struct {
  8. Id string `json:"id" bson:"_id"` // Id
  9. UserName string `json:"user_name" bson:"userName"` // 用户ID
  10. NickName string `json:"nick_name" bson:"nickName"` // 昵称
  11. Status int `json:"status" bson:"status"` // 0:未审核 1:审核通过 2:审核失败
  12. Reason string `json:"reason" bson:"reason"` // 提现原因
  13. Withdrawal int `json:"withdrawal" bson:"withdrawal"` // 提现 1:提现成功 2:提现中 3:提现失败 4:拒绝提现
  14. Amount int `json:"amount" bson:"amount"` // 提现金额
  15. AfterAmount int `json:"after_amount" bson:"after_amount"` // 提现后金额
  16. Type interface{} `json:"type" bson:"type"` // 货币内型
  17. Address string `json:"address" bson:"address"` // 地址
  18. CreateAt interface{} `json:"createAt" bson:"createAt"` // 提现时间
  19. UpdateAt interface{} `json:"updateAt" bson:"updateAt"`
  20. }
  21. type UserWithdrawalReq struct {
  22. UserName string `json:"user_name" bson:"user_name"` // 用户ID
  23. NickName string `json:"nick_name" bson:"nick_name"` // 昵称
  24. ID string `json:"id" bson:"id"` // ID
  25. StartTime int64 `json:"start_time"` // 开始时间
  26. EndTime int64 `json:"end_time"` // 结束时间
  27. Page int `json:"page"` // 页码
  28. Size int `json:"size"` // 每页数量
  29. }
  30. type UserWithdrawalStatus struct {
  31. UserName string `json:"user_name" bson:"user_name" binding:"required"` // 用户ID
  32. Status int `json:"status" bson:"status" ` // 0:未审核 1:审核通过 2:审核失败
  33. Withdrawal int `json:"withdrawal" bson:"withdrawal"` // 提现 1:提现成功 2:提现中 3:提现失败 4:拒绝提现
  34. }
  35. type UserWithdrawalStatusBatch struct {
  36. ID []string `json:"id" bson:"id" binding:"required"` // 用户ID
  37. Status int `json:"status" bson:"status"` // 0:未审核 1:审核通过 2:审核失败
  38. Withdrawal int `json:"withdrawal" bson:"withdrawal"` // 提现 1:提现成功 2:提现中 3:提现失败 4:拒绝提现
  39. }