2024-11-05 08:32:10 +08:00
|
|
|
package vo
|
|
|
|
|
2024-11-22 09:23:33 +08:00
|
|
|
import "github.com/gogf/gf/v2/frame/g"
|
|
|
|
|
2024-11-05 08:32:10 +08:00
|
|
|
type RespBase struct {
|
|
|
|
Code int `json:"code"` //错误码
|
|
|
|
Message string `json:"message"` //成功还是失败
|
|
|
|
}
|
|
|
|
|
|
|
|
type PayQrCodeReq struct {
|
2024-11-22 09:23:33 +08:00
|
|
|
g.Meta `path:"/payQrCode" method:"post"`
|
|
|
|
ShopId string `json:"shopId"` //商户ID
|
|
|
|
Price string `json:"price"` //商品原价
|
|
|
|
Bean float64 `json:"bean"` //抵扣金豆钱数
|
|
|
|
Reduction int `json:"reduction"` //随机立减 单位分
|
|
|
|
OpenId string `json:"openId"` //微信OpenId
|
|
|
|
Mobile string `json:"mobile"` //支付用户手机号
|
|
|
|
Channel int `json:"channel"` //支付渠道 1.微信 2.支付宝
|
2024-11-05 08:32:10 +08:00
|
|
|
}
|
|
|
|
type PayQrCodeResp struct {
|
2024-11-22 09:23:33 +08:00
|
|
|
OrderId string `json:"orderId"` //订单号
|
|
|
|
Bean float64 `json:"bean"` //金豆
|
|
|
|
Reduction float64 `json:"reduction"` //随机立减
|
|
|
|
JsapiPayInfo string `json:"jsapiPayInfo"` //支付信息
|
|
|
|
|
2024-11-05 08:32:10 +08:00
|
|
|
}
|
2024-11-07 18:07:35 +08:00
|
|
|
type YseJavaResp struct {
|
|
|
|
Sign string `json:"sign"`
|
|
|
|
BizContent string `json:"biz_content"`
|
|
|
|
}
|
2024-11-22 09:23:33 +08:00
|
|
|
|
|
|
|
type GetReductionReq struct {
|
|
|
|
g.Meta `path:"/getReduction" method:"post"`
|
|
|
|
ShopId string `json:"shopId"` //店铺ID
|
|
|
|
}
|
|
|
|
type GetReductionResp struct {
|
|
|
|
Reduction int64 `json:"reduction"` //随机立减,单位分
|
|
|
|
}
|