dt_withdraw_order.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. PaymentType string `json:"paymentType" gorm:"type:varchar(32);comment:收款类型: usdt/bank/momo/zalopay"`
  11. PaymentId int64 `json:"paymentId" gorm:"comment:收款账户ID"`
  12. PaymentInfo string `json:"paymentInfo" gorm:"type:text;comment:收款账户信息(JSON)"`
  13. AuditTime int64 `json:"auditTime" gorm:"comment:审核时间"`
  14. AuditAdminId int64 `json:"auditAdminId" gorm:"comment:审核管理员ID"`
  15. AuditRemark string `json:"auditRemark" gorm:"type:varchar(512);comment:审核备注"`
  16. Status int8 `json:"status" gorm:"default:0;index:idx_status;comment:状态: -1=已拒绝 0=待审核 1=已通过"`
  17. }
  18. func (*DtWithdrawOrder) TableName() string {
  19. return "dt_withdraw_order"
  20. }
  21. func (*DtWithdrawOrder) Comment() string {
  22. return "提现订单表"
  23. }
  24. func NewDtWithdrawOrder() *DtWithdrawOrder {
  25. return &DtWithdrawOrder{}
  26. }
  27. // 提现状态常量
  28. const (
  29. WithdrawStatusRejected = -1 // 已拒绝
  30. WithdrawStatusPending = 0 // 待审核
  31. WithdrawStatusApproved = 1 // 已通过
  32. )