dt_withdraw_order.go 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package entity
  2. // DtWithdrawOrder 提现订单表
  3. type DtWithdrawOrder struct {
  4. MysqlBaseModel
  5. OrderNo string `json:"orderNo" gorm:"type:varchar(32);uniqueIndex:uk_order_no;comment:订单号"`
  6. UserId int64 `json:"userId" gorm:"index:idx_user_id;comment:用户ID"`
  7. Amount float64 `json:"amount" gorm:"type:decimal(18,2);comment:提现金额"`
  8. Fee float64 `json:"fee" gorm:"type:decimal(18,2);default:0.00;comment:手续费"`
  9. ActualAmount float64 `json:"actualAmount" gorm:"type:decimal(18,2);comment:实际到账金额"`
  10. Channel string `json:"channel" gorm:"type:varchar(32);comment:提现渠道: usdt/momo/zalopay/bank"`
  11. PaymentType string `json:"paymentType" gorm:"type:varchar(32);comment:收款类型: usdt/bank/momo/zalopay"`
  12. PaymentId int64 `json:"paymentId" gorm:"comment:收款账户ID"`
  13. PaymentInfo string `json:"paymentInfo" gorm:"type:text;comment:收款账户信息(JSON)"`
  14. ReceiveAccount string `json:"receiveAccount" gorm:"type:varchar(128);comment:收款账号"`
  15. ReceiveName string `json:"receiveName" gorm:"type:varchar(64);comment:收款人姓名"`
  16. BankName string `json:"bankName" gorm:"type:varchar(64);comment:银行名称"`
  17. AuditTime int64 `json:"auditTime" gorm:"comment:审核时间"`
  18. AuditAdminId int64 `json:"auditAdminId" gorm:"comment:审核管理员ID"`
  19. AuditRemark string `json:"auditRemark" gorm:"type:varchar(512);comment:审核备注"`
  20. Status int8 `json:"status" gorm:"default:0;index:idx_status;comment:状态: -1=已拒绝 0=待审核 1=已通过"`
  21. }
  22. func (*DtWithdrawOrder) TableName() string {
  23. return "dt_withdraw_order"
  24. }
  25. func (*DtWithdrawOrder) Comment() string {
  26. return "提现订单表"
  27. }
  28. func NewDtWithdrawOrder() *DtWithdrawOrder {
  29. return &DtWithdrawOrder{}
  30. }
  31. // 提现状态常量
  32. const (
  33. WithdrawStatusRejected = -1 // 已拒绝
  34. WithdrawStatusPending = 0 // 待审核
  35. WithdrawStatusApproved = 1 // 已通过
  36. )