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

26 lines
1.1 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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"`
}