43 lines
1.2 KiB
Go
43 lines
1.2 KiB
Go
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"`
|
|
} |