This commit is contained in:
2026-01-12 16:43:08 +08:00
parent dc747139c9
commit 3c6e2683f5
110 changed files with 9630 additions and 481 deletions

View File

@@ -19,6 +19,10 @@ service main {
@handler AlipayCallback
post /pay/alipay/callback
// 支付宝from消息回调
@handler AlipayFrom
post /pay/alipay/from
// 微信退款回调
@handler WechatPayRefundCallback
post /pay/wechat/refund_callback
@@ -46,7 +50,7 @@ type (
PaymentReq {
Id string `json:"id"`
PayMethod string `json:"pay_method"` // 支付方式: wechat, alipay, appleiap, test(仅开发环境), test_empty(仅开发环境-空报告模式)
PayType string `json:"pay_type" validate:"required,oneof=query agent_vip agent_upgrade"`
PayType string `json:"pay_type" validate:"required,oneof=query agent_vip agent_upgrade whitelist"`
}
PaymentResp {
PrepayData interface{} `json:"prepay_data"`