统一金额分制重构
This commit is contained in:
@@ -6,11 +6,8 @@ type WithdrawalRequest struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
WithdrawNo string `gorm:"size:64;not null;uniqueIndex" json:"withdraw_no"`
|
||||
UserID uint64 `gorm:"not null;index" json:"user_id"`
|
||||
Amount float64 `gorm:"type:decimal(12,2);not null" json:"-"`
|
||||
AmountCent int64 `gorm:"not null;default:0" json:"-"`
|
||||
Fee float64 `gorm:"type:decimal(12,2);not null;default:0.00" json:"-"`
|
||||
FeeCent int64 `gorm:"not null;default:0" json:"-"`
|
||||
ActualAmount float64 `gorm:"type:decimal(12,2);not null" json:"-"`
|
||||
ActualAmountCent int64 `gorm:"not null;default:0" json:"-"`
|
||||
PaymentAccountID *uint64 `json:"payment_account_id"`
|
||||
AccountType string `gorm:"size:32;not null" json:"account_type"`
|
||||
|
||||
Reference in New Issue
Block a user