添加文件: xy_sh/internal/entities/request.go
This commit is contained in:
parent
074932e025
commit
6e6f8b18b3
|
|
@ -0,0 +1,49 @@
|
|||
package entities
|
||||
|
||||
// OrderRequest 卡券/直充权益下单接口请求业务参数
|
||||
type OrderRequest struct {
|
||||
ActCode string `json:"actCode"` // 活动code
|
||||
GoodsCode string `json:"goodsCode"` // 供应商商品编号
|
||||
ActOrderNum string `json:"actOrderNum"` // 活动方订单号
|
||||
Account string `json:"account,omitempty"` // 充值账号
|
||||
CallbackUrl string `json:"callbackUrl,omitempty"` // 回调地址
|
||||
}
|
||||
|
||||
// QueryRequest 订单查询接口请求业务参数
|
||||
type QueryRequest struct {
|
||||
ActCode string `json:"actCode"` // 活动code
|
||||
OrderNo string `json:"orderNo"` // 供应商订单号
|
||||
}
|
||||
|
||||
// WechatRechargeRequest 微信立减金订单充值接口请求业务参数
|
||||
type WechatRechargeRequest struct {
|
||||
ActCode string `json:"actCode"` // 活动code
|
||||
OrderNo string `json:"orderNo"` // 供应商订单号
|
||||
GoodsCode string `json:"goodsCode"` // 供应商商品编号
|
||||
ActOrderNum string `json:"actOrderNum"` // 活动方订单号
|
||||
AppId string `json:"appId"` // 公众账号ID
|
||||
OpenId string `json:"openId"` // 微信用户标识
|
||||
CallbackUrl string `json:"callbackUrl,omitempty"` // 回调地址
|
||||
}
|
||||
|
||||
// CallbackRequest 充值结果通知接口回调业务参数
|
||||
type CallbackRequest struct {
|
||||
OrderNo string `json:"orderNo"` // 供应商订单号
|
||||
ActOrderNum string `json:"actOrderNum"` // 活动方订单号
|
||||
Status int `json:"status"` // 订单状态
|
||||
Account string `json:"account,omitempty"` // 直充账号
|
||||
CardInfo *CardInfo `json:"cardInfo,omitempty"` // 卡券信息
|
||||
CouponId string `json:"couponId,omitempty"` // 微信优惠id
|
||||
}
|
||||
|
||||
// CardInfo 卡券信息
|
||||
type CardInfo struct {
|
||||
CouponNo string `json:"couponNo"` // 卡号/短链
|
||||
CouponCode string `json:"couponCode"` // 卡密
|
||||
ExpireTime string `json:"expireTime"` // 过期时间
|
||||
}
|
||||
|
||||
// EncryptedRequest 加密请求体
|
||||
type EncryptedRequest struct {
|
||||
EncryptedData string `json:"encryptedData"` // SM4加密后的业务数据
|
||||
}
|
||||
Loading…
Reference in New Issue