添加文件: xy_sh/internal/entities/response.go
This commit is contained in:
parent
ef61d4b1c8
commit
929f3aa897
|
|
@ -0,0 +1,42 @@
|
||||||
|
package entities
|
||||||
|
|
||||||
|
type CommonResponse struct {
|
||||||
|
Code int `json:"code"`
|
||||||
|
Msg string `json:"msg"`
|
||||||
|
Data interface{} `json:"data"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type OrderResponseData struct {
|
||||||
|
OrderNo string `json:"orderNo"`
|
||||||
|
CouponNo string `json:"couponNo,omitempty"`
|
||||||
|
CouponCode string `json:"couponCode,omitempty"`
|
||||||
|
Status int `json:"status"`
|
||||||
|
ExpireTime string `json:"expireTime,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type QueryOrderResponseData struct {
|
||||||
|
OrderNo string `json:"orderNo"`
|
||||||
|
Status int `json:"status"`
|
||||||
|
Account string `json:"account,omitempty"`
|
||||||
|
CardInfo *CardInfo `json:"cardInfo,omitempty"`
|
||||||
|
CouponId string `json:"couponId,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type WxRechargeResponseData struct {
|
||||||
|
OrderNo string `json:"orderNo"`
|
||||||
|
Status int `json:"status"`
|
||||||
|
CouponId string `json:"couponId,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
StatusSending = -1
|
||||||
|
StatusSuccess = 0
|
||||||
|
StatusFailed = 1
|
||||||
|
StatusRedeemed = 2
|
||||||
|
StatusExpired = 3
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
CodeSuccess = 0
|
||||||
|
CodeFailed = -1
|
||||||
|
)
|
||||||
Loading…
Reference in New Issue