XinYeYouKu/app/http/entities/front/openapi.go

26 lines
1.1 KiB
Go
Raw Normal View History

2024-06-13 14:50:26 +08:00
package front
type MarketApiRequest struct {
TradeNo string `json:"tradeNo" validate:"required"` // 交易流水号
VoucherId string `json:"voucherId"` // 制码批次号
VoucherCode string `json:"voucherCode"` // 串码
CnclSt string `json:"cnclSt"` // 核销状态4-已核销
RedeemResult string `json:"redeemResult"` // 核销结果00-成功09- 失败
MrchntNo string `json:"mrchntNo"` // 商户号
}
type MarketApiResponse struct {
Code string `json:"code"` // 结果状态码: 0000-成功
Msg string `json:"msg"` // 错误信息
TradeNo string `json:"tradeNo"` // 交易流水号
}
type OpenApiRequest struct {
MerchantId int `form:"merchantId" validate:"required"`
OutTradeNo string `form:"outTradeNo" validate:"required"`
Status string `form:"status" validate:"required"`
RechargeAccount string `form:"rechargeAccount"`
CardCode string `form:"cardCode"`
Sign string `form:"sign" validate:"required"`
}