user_withdrawal.go 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package entity
  2. type UserWithdrawalResp struct {
  3. Details []*UserWithdrawalDetail `json:"details"`
  4. Total int64 `json:"total"`
  5. }
  6. // UserWithdrawalResp \game\game_cluster\nodes\webadmin\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. OpenId string `json:"openId" bson:"openId"` // 对应tgid
  12. Status int `json:"status" bson:"status"` // 0:未审核 1:审核通过 2:审核失败
  13. Reason string `json:"reason" bson:"reason"` // 提现原因
  14. Withdrawal int `json:"withdrawal" bson:"withdrawal"` // 提现 1:提现成功 2:提现中 3:提现失败 4:拒绝提现
  15. Amount int `json:"amount" bson:"amount"` // 提现金额
  16. AfterAmount int `json:"after_amount" bson:"after_amount"` // 提现后金额
  17. Type interface{} `json:"type" bson:"type"` // 货币内型
  18. Address string `json:"address" bson:"address"` // 地址
  19. CreateAt interface{} `json:"createAt" bson:"createAt"` // 提现时间
  20. UpdateAt interface{} `json:"updateAt" bson:"updateAt"`
  21. }
  22. type UserWithdrawalReq struct {
  23. UserName string `json:"user_name" bson:"user_name"` // 用户ID
  24. NickName string `json:"nick_name" bson:"nick_name"` // 昵称
  25. ID string `json:"id" bson:"id"` // ID
  26. StartTime int64 `json:"start_time"` // 开始时间
  27. EndTime int64 `json:"end_time"` // 结束时间
  28. Page int `json:"page"` // 页码
  29. Size int `json:"size"` // 每页数量
  30. Address string `json:"address"` // 地址
  31. State int `json:"state"` // 服务器是否已经处理 0 未处理 1已处理
  32. Withdrawal int `json:"withdrawal"` // 提现 0 :未体现 1:提现成功 2:提现中 3:提现失败 4:拒绝提现
  33. AmountMin int `json:"amount_min"` // 提现金额最小值
  34. AmountMax int `json:"amount_max"` // 提现金额最大值
  35. AfterAmountMin int `json:"after_amount_min"` // 提现后金额最小值
  36. AfterAmountMax int `json:"after_amount_max"` // 提现后金额最大值
  37. }
  38. type UserWithdrawalExportReq struct {
  39. ExportFormat int `json:"export_format"` // 导出样式 0:返回需要导出的数据1:返回包含导出数据的csv文件url 该字段暂未使用
  40. UserName string `json:"user_name" bson:"user_name"` // 用户ID
  41. NickName string `json:"nick_name" bson:"nick_name"` // 昵称
  42. ID string `json:"id" bson:"id"` // ID
  43. StartTime int64 `json:"start_time"` // 开始时间
  44. EndTime int64 `json:"end_time"` // 结束时间
  45. Address string `json:"address"` // 地址
  46. State int `json:"state"` // 服务器是否已经处理 0 未处理 1已处理
  47. Withdrawal int `json:"withdrawal"` // 提现 0 :未体现 1:提现成功 2:提现中 3:提现失败 4:拒绝提现
  48. AmountMin int `json:"amount_min"` // 提现金额最小值
  49. AmountMax int `json:"amount_max"` // 提现金额最大值
  50. AfterAmountMin int `json:"after_amount_min"` // 提现后金额最小值
  51. AfterAmountMax int `json:"after_amount_max"` // 提现后金额最大值
  52. }
  53. type UserWithdrawalStatus struct {
  54. UserName string `json:"user_name" bson:"user_name" binding:"required"` // 用户ID
  55. Status int `json:"status" bson:"status" ` // 0:未审核 1:审核通过 2:审核失败
  56. Withdrawal int `json:"withdrawal" bson:"withdrawal"` // 提现 1:提现成功 2:提现中 3:提现失败 4:拒绝提现
  57. }
  58. type UserWithdrawalStatusBatch struct {
  59. ID []string `json:"id" bson:"id" binding:"required"` // 用户ID
  60. Status int `json:"status" bson:"status"` // 0:未审核 1:审核通过 2:审核失败
  61. Withdrawal int `json:"withdrawal" bson:"withdrawal"` // 提现 1:提现成功 2:提现中 3:提现失败 4:拒绝提现
  62. }