57 lines
1.5 KiB
Go
57 lines
1.5 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"`
|
|
}
|
|
|
|
type CallBack struct {
|
|
Data struct {
|
|
NotifyId string `json:"notify_id"`
|
|
OutBizNo string `json:"out_biz_no"`
|
|
TradeNo string `json:"trade_no"`
|
|
Status uint32 `json:"status"`
|
|
Account string `json:"account"`
|
|
ValidEndTime string `json:"valid_end_time"`
|
|
Key string `json:"key"`
|
|
Url string `json:"url"`
|
|
} `json:"data"`
|
|
}
|