Files
observer/server/biz/model/dto/payment.go
T

25 lines
937 B
Go

package dto
import "github.com/gogf/gf/v2/frame/g"
// WechatNotifyReq 微信支付回调:raw 请求头/体在 controller 经 g.RequestFromCtx 读取,
// dto 仅声明路由。
type WechatNotifyReq struct {
g.Meta `path:"/wechat/notify" method:"post" summary:"微信支付回调" tags:"回调"`
}
// WechatNotifyRes 微信回调应答:{"code":"SUCCESS"} 或 {"code":"FAIL","message":...}
type WechatNotifyRes struct {
Code string `json:"code"`
Message string `json:"message,omitempty"`
}
// AlipayNotifyReq 支付宝回调:raw 表单在 controller 经 g.RequestFromCtx 读取,
// 应答按支付宝约定直接写 "success"/"failure" 文本。
type AlipayNotifyReq struct {
g.Meta `path:"/alipay/notify" method:"post" summary:"支付宝回调" tags:"回调"`
}
// AlipayNotifyRes 支付宝回调应答占位(响应体由 controller 直接写入,此处仅满足框架签名要求)
type AlipayNotifyRes struct{}