统一金额分制重构
This commit is contained in:
@@ -58,11 +58,8 @@ func (r *Repository) Create(userID uint64, req CreateWithdrawalRequest) (*Withdr
|
||||
withdrawal := model.WithdrawalRequest{
|
||||
WithdrawNo: withdrawNo,
|
||||
UserID: userID,
|
||||
Amount: float64(req.AmountCent) / 100,
|
||||
AmountCent: req.AmountCent,
|
||||
Fee: float64(feeCent) / 100,
|
||||
FeeCent: feeCent,
|
||||
ActualAmount: float64(actualAmountCent) / 100,
|
||||
ActualAmountCent: actualAmountCent,
|
||||
PaymentAccountID: &req.PaymentAccountID,
|
||||
AccountType: paymentAccount.AccountType,
|
||||
|
||||
Reference in New Issue
Block a user