feat(app): update

This commit is contained in:
Yangtao
2025-11-19 14:24:13 +08:00
parent 1eac66d7fd
commit 0c34585649
329 changed files with 10760 additions and 281 deletions

View File

@ -0,0 +1,30 @@
package request
import "github.com/shopspring/decimal"
const (
WxPayChannelCode = "WxPay"
AlipayChannelCode = "AliPay"
)
type RefundReq[T any] struct {
TransactionId string // 支付单号
OutTransactionId string // DD game内部唯一支付单号
OutRefundNo string // 退款单号DD Game内部退款唯一单号
Reason string // 退款原因 1、该退款原因参数的长度不得超过80个字节2、当订单退款金额小于等于1元且为部分退款时退款原因将不会在消息中体现。
RefundDetail T
ChannelCode string //渠道 Code WxPay|AliPay
}
type AliPayRefund struct {
RefundAmount decimal.Decimal // 退款金额alipay单位是元(两位小数),此处统一成分
}
type WxPayRefund struct {
RefundAmount decimal.Decimal // 退款金额wx单位是分,alipay单位是元(两位小数),此处统一成分
PayAmount decimal.Decimal // 原支付订单的金额
}
func (req *RefundReq[T]) CheckParameter() (err error) {
return nil
}