订单分佣规则
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

appreciation.go 1.1 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1234567891011121314151617181920212223
  1. package md
  2. import "github.com/shopspring/decimal"
  3. var (
  4. WithdrawalCommissionFee = decimal.NewFromFloat(0.15) //提现手续费比例
  5. WithdrawalDestroyFee = decimal.NewFromFloat(0.05) //提现销毁增值积分比例
  6. WithdrawalRefluxFee = decimal.NewFromFloat(0.10) //提现回流增值积分比例
  7. )
  8. type DealWithdrawalAndDestroyResp struct {
  9. Price float64 `json:"price"` //价值
  10. TransferOut float64 `json:"transfer_out"` //提现的积分
  11. TransferOutValue float64 `json:"transfer_out_value"` //提现的余额
  12. AmountOut float64 `json:"amount_out"` //手续费
  13. DestroyValue float64 `json:"destroy_value"` //销毁的积分
  14. RefluxValue float64 `json:"reflux_value"` //回流的积分
  15. }
  16. type DealWithdrawalFeeResp struct {
  17. WithdrawalCommissionFee float64 `json:"withdrawal_commission_fee"` //提现手续费比例
  18. WithdrawalDestroyFee float64 `json:"withdrawal_destroy_fee"` //提现销毁增值积分比例
  19. WithdrawalRefluxFee float64 `json:"withdrawal_reflux_fee"` //提现回流增值积分比例
  20. }