添加文件: xy_sh/internal/entities/request.go
This commit is contained in:
parent
314ba4e7b2
commit
ef61d4b1c8
|
|
@ -0,0 +1,43 @@
|
|||
package entities
|
||||
|
||||
type EncryptedRequest struct {
|
||||
EncryptedData string `json:"encryptedData"`
|
||||
}
|
||||
|
||||
type OrderRequest struct {
|
||||
ActCode string `json:"actCode"`
|
||||
GoodsCode string `json:"goodsCode"`
|
||||
ActOrderNum string `json:"actOrderNum"`
|
||||
Account string `json:"account,omitempty"`
|
||||
CallbackUrl string `json:"callbackUrl,omitempty"`
|
||||
}
|
||||
|
||||
type QueryOrderRequest struct {
|
||||
ActCode string `json:"actCode"`
|
||||
OrderNo string `json:"orderNo"`
|
||||
}
|
||||
|
||||
type WxRechargeRequest 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"`
|
||||
}
|
||||
|
||||
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"`
|
||||
}
|
||||
|
||||
type CardInfo struct {
|
||||
CouponNo string `json:"couponNo"`
|
||||
CouponCode string `json:"couponCode"`
|
||||
ExpireTime string `json:"expireTime"`
|
||||
}
|
||||
Loading…
Reference in New Issue