25 lines
1.0 KiB
Go
25 lines
1.0 KiB
Go
![]() |
package model
|
||
|
|
||
|
// UserWithdrawal 用户提现数据模型
|
||
|
type UserWithdrawal struct {
|
||
|
Model
|
||
|
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||
|
OrderNo string `gorm:"column:order_no;type:varchar(30);default:'';comment:订单号" json:"order_no"`
|
||
|
BackCard string `gorm:"column:back_card;type:varchar(25);default:'';comment:银行卡号" json:"back_card"`
|
||
|
Mobile string `gorm:"column:mobile;type:varchar(15);default:'';comment:联系方式" json:"mobile"`
|
||
|
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0;comment:提现金额" json:"amount"`
|
||
|
ActualAmount float64 `gorm:"column:actual_amount;type:decimal(10,2);default:0;comment:实际到账金额" json:"actual_amount"`
|
||
|
Charge float64 `gorm:"column:charge;type:decimal(10,2);default:0;comment:提现手续费" json:"charge"`
|
||
|
Status int `json:"status"`
|
||
|
ModelDeleted
|
||
|
ModelAt
|
||
|
}
|
||
|
|
||
|
func (m *UserWithdrawal) TableName() string {
|
||
|
return "user_withdrawal"
|
||
|
}
|
||
|
|
||
|
func NewUserWithdrawal() *UserWithdrawal {
|
||
|
return &UserWithdrawal{}
|
||
|
}
|