添加文件: xy_sh/internal/entities/request.go
This commit is contained in:
parent
1722b01f1c
commit
edab14e3c4
|
|
@ -0,0 +1,44 @@
|
||||||
|
package entities
|
||||||
|
|
||||||
|
// OrderCreateBizReq 卡券/直充权益下单请求业务参数
|
||||||
|
type OrderCreateBizReq struct {
|
||||||
|
ActCode string `json:"actCode"`
|
||||||
|
GoodsCode string `json:"goodsCode"`
|
||||||
|
ActOrderNum string `json:"actOrderNum"`
|
||||||
|
Account string `json:"account,omitempty"`
|
||||||
|
CallbackURL string `json:"callbackUrl,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// OrderQueryBizReq 卡券/直充/微信立减金订单查询请求业务参数
|
||||||
|
type OrderQueryBizReq struct {
|
||||||
|
ActCode string `json:"actCode"`
|
||||||
|
OrderNo string `json:"orderNo"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// WechatRechargeBizReq 微信立减金订单充值请求业务参数
|
||||||
|
type WechatRechargeBizReq struct {
|
||||||
|
ActCode string `json:"actCode"`
|
||||||
|
OrderNo string `json:"orderNo"`
|
||||||
|
GoodsCode string `json:"goodsCode"`
|
||||||
|
ActOrderNum string `json:"actOrderNum"`
|
||||||
|
AppId string `json:"appId"`
|
||||||
|
OpenId string `json:"openId"`
|
||||||
|
CallbackURL string `json:"callbackUrl,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// CallbackNotifyBizReq 回调通知请求业务参数
|
||||||
|
type CallbackNotifyBizReq 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"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// CardInfo 卡券信息
|
||||||
|
type CardInfo struct {
|
||||||
|
CouponNo string `json:"couponNo"`
|
||||||
|
CouponCode string `json:"couponCode"`
|
||||||
|
ExpireTime string `json:"expireTime"`
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue