package entity // DtWithdrawOrder 提现订单表 type DtWithdrawOrder struct { MysqlBaseModel OrderNo string `json:"orderNo" gorm:"type:varchar(32);uniqueIndex:uk_order_no;comment:订单号"` UserId int64 `json:"userId" gorm:"index:idx_user_id;comment:用户ID"` Amount float64 `json:"amount" gorm:"type:decimal(18,2);comment:提现金额"` Fee float64 `json:"fee" gorm:"type:decimal(18,2);default:0.00;comment:手续费"` ActualAmount float64 `json:"actualAmount" gorm:"type:decimal(18,2);comment:实际到账金额"` PaymentType string `json:"paymentType" gorm:"type:varchar(32);comment:收款类型: usdt/bank/momo/zalopay"` PaymentId int64 `json:"paymentId" gorm:"comment:收款账户ID"` PaymentInfo string `json:"paymentInfo" gorm:"type:text;comment:收款账户信息(JSON)"` AuditTime int64 `json:"auditTime" gorm:"comment:审核时间"` AuditAdminId int64 `json:"auditAdminId" gorm:"comment:审核管理员ID"` AuditRemark string `json:"auditRemark" gorm:"type:varchar(512);comment:审核备注"` Status int8 `json:"status" gorm:"default:0;index:idx_status;comment:状态: -1=已拒绝 0=待审核 1=已通过"` } func (*DtWithdrawOrder) TableName() string { return "dt_withdraw_order" } func (*DtWithdrawOrder) Comment() string { return "提现订单表" } func NewDtWithdrawOrder() *DtWithdrawOrder { return &DtWithdrawOrder{} } // 提现状态常量 const ( WithdrawStatusRejected = -1 // 已拒绝 WithdrawStatusPending = 0 // 待审核 WithdrawStatusApproved = 1 // 已通过 )