添加文件: xy_sh/internal/entities/response.go
This commit is contained in:
parent
ffb0bbf1f1
commit
0ef0a0b8cc
|
|
@ -0,0 +1,17 @@
|
|||
package entities
|
||||
|
||||
// ApiResponse 通用API响应
|
||||
type ApiResponse struct {
|
||||
Code int `json:"code"` // 0成功 -1失败
|
||||
Msg string `json:"msg"` // 错误信息
|
||||
Data interface{} `json:"data"` // 加密后的业务数据字符串
|
||||
}
|
||||
|
||||
// OrderCreateResponse 下单响应业务数据(解密后)
|
||||
type OrderCreateResponse struct {
|
||||
OrderNo string `json:"orderNo"` // 供应商订单号
|
||||
CouponNo string `json:"couponNo,omitempty"` // 卡号
|
||||
CouponCode string `json:"couponCode,omitempty"` // 卡密
|
||||
Status int `json:"status"` // -1发放中 0成功 1失败 2已核销 3已过期
|
||||
ExpireTime string `json:"expireTime,omitempty"` // 有效期
|
||||
}
|
||||
Loading…
Reference in New Issue