f
This commit is contained in:
@@ -26,6 +26,10 @@ service main {
|
||||
// 易支付回调
|
||||
@handler EasyPayCallback
|
||||
get /pay/easypay/callback
|
||||
|
||||
// 云印签支付回调
|
||||
@handler YunYinSignPayCallback
|
||||
post /pay/yunyinsign/callback
|
||||
}
|
||||
|
||||
@server (
|
||||
@@ -44,6 +48,10 @@ service main {
|
||||
|
||||
@handler PaymentCheck
|
||||
post /pay/check (PaymentCheckReq) returns (PaymentCheckResp)
|
||||
|
||||
// 云印签退款
|
||||
@handler YunYinSignPayRefund
|
||||
post /pay/yunyinsign/refund (YunYinSignPayRefundReq) returns (YunYinSignPayRefundResp)
|
||||
}
|
||||
|
||||
type (
|
||||
@@ -72,5 +80,15 @@ type (
|
||||
OrderID string `json:"order_id" validate:"required"`
|
||||
TransactionReceipt string `json:"transaction_receipt" validate:"required"`
|
||||
}
|
||||
YunYinSignPayRefundReq {
|
||||
OrderNo string `json:"order_no"` // 订单号(sourceOrderCode),与 participate_id 二选一
|
||||
ParticipateId int64 `json:"participate_id,omitempty"` // 参与方ID,与 order_no 二选一
|
||||
RefundAmount float64 `json:"refund_amount" validate:"required,gt=0"` // 退款金额,必须大于0
|
||||
RefundReason string `json:"refund_reason,omitempty"` // 退款原因
|
||||
}
|
||||
YunYinSignPayRefundResp {
|
||||
Success bool `json:"success"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user