添加文件: xy_sh/internal/entities/response.go
This commit is contained in:
parent
edab14e3c4
commit
33726cdab5
|
|
@ -0,0 +1,33 @@
|
||||||
|
package entities
|
||||||
|
|
||||||
|
// ApiResponse 通用API响应结构
|
||||||
|
type ApiResponse struct {
|
||||||
|
Code int `json:"code"`
|
||||||
|
Msg string `json:"msg"`
|
||||||
|
Data interface{} `json:"data"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// OrderCreateBizResp 下单响应业务参数
|
||||||
|
type OrderCreateBizResp struct {
|
||||||
|
OrderNo string `json:"orderNo"`
|
||||||
|
CouponNo string `json:"couponNo,omitempty"`
|
||||||
|
CouponCode string `json:"couponCode,omitempty"`
|
||||||
|
Status int `json:"status"`
|
||||||
|
ExpireTime string `json:"expireTime,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// OrderQueryBizResp 订单查询响应业务参数
|
||||||
|
type OrderQueryBizResp struct {
|
||||||
|
OrderNo string `json:"orderNo"`
|
||||||
|
Status int `json:"status"`
|
||||||
|
Account string `json:"account,omitempty"`
|
||||||
|
CardInfo *CardInfo `json:"cardInfo,omitempty"`
|
||||||
|
CouponId string `json:"couponId,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// WechatRechargeBizResp 微信立减金充值响应业务参数
|
||||||
|
type WechatRechargeBizResp struct {
|
||||||
|
OrderNo string `json:"orderNo"`
|
||||||
|
Status int `json:"status"`
|
||||||
|
CouponId string `json:"couponId,omitempty"`
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue