添加文件: xy_sh/internal/entities/response.go
This commit is contained in:
parent
6e6f8b18b3
commit
c4ab780caf
|
|
@ -0,0 +1,33 @@
|
|||
package entities
|
||||
|
||||
// ApiResponse 通用API响应
|
||||
type ApiResponse struct {
|
||||
Code int `json:"code"` // 返回状态编码,0成功 -1失败
|
||||
Msg string `json:"msg"` // 返回错误信息
|
||||
Data interface{} `json:"data"` // JSON格式业务数据进行SM4加密后的字符串
|
||||
}
|
||||
|
||||
// OrderResponse 下单接口响应业务参数
|
||||
type OrderResponse struct {
|
||||
OrderNo string `json:"orderNo"` // 权益订单号
|
||||
CouponNo string `json:"couponNo,omitempty"` // 卡号
|
||||
CouponCode string `json:"couponCode,omitempty"` // 卡密
|
||||
Status int `json:"status"` // 状态
|
||||
ExpireTime string `json:"expireTime,omitempty"` // 有效期
|
||||
}
|
||||
|
||||
// QueryResponse 查询接口响应业务参数
|
||||
type QueryResponse struct {
|
||||
OrderNo string `json:"orderNo"` // 权益订单号
|
||||
Status int `json:"status"` // 订单状态
|
||||
Account string `json:"account,omitempty"` // 充值账号
|
||||
CardInfo *CardInfo `json:"cardInfo,omitempty"` // 卡券信息
|
||||
CouponId string `json:"couponId,omitempty"` // 优惠id
|
||||
}
|
||||
|
||||
// WechatRechargeResponse 微信立减金充值响应业务参数
|
||||
type WechatRechargeResponse struct {
|
||||
OrderNo string `json:"orderNo"` // 权益订单号
|
||||
Status int `json:"status"` // 订单状态
|
||||
CouponId string `json:"couponId,omitempty"` // 微信优惠id
|
||||
}
|
||||
Loading…
Reference in New Issue