notice.go 2.32 KB
Newer Older
1 2 3 4
package models

// WxNoticeInput 微信回调输入参数
type WxNoticeInput struct {
wangp's avatar
wangp committed
5 6 7 8 9 10 11 12 13 14 15 16
	ChannelId          string `json:"channel_id" description:"渠道号"`
	MerchantNo         string `json:"merchant_no" description:"结算商户号"`
	OrderCreateTime    string `json:"order_create_time" description:"订单创建时间"`
	OrderEfficientTime string `json:"order_efficient_time" description:"订单有效时间"`
	OrderInfo          string `json:"order_info" description:"订单描述"`
	OrderStatus        string `json:"order_status" description:"订单状态"`
	OutOrderNo         string `json:"out_order_no" description:"商户订单号"`
	PayOrderNo         string `json:"pay_order_no" description:"支付订单号"`
	TermNo             string `json:"term_no" description:"结算终端号"`
	TotalAmount        int64  `json:"total_amount" description:"订单金额,单位:分"`
	TransMerchantNo    string `json:"trans_merchant_no" description:"交易商户号"`
	TransTermNo        string `json:"trans_term_no" description:"交易终端号"`
wangp's avatar
wangp committed
17 18
	OrderTradeInfo     interface{} `json:"order_trade_info" description:""`
	SplitInfo          interface{} `json:"split_info" description:""`
19 20
}

wangp's avatar
wangp committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
//订单交易信息
//type OrderTradeInfo struct {
//	AccTradeNo       string `json:"acc_trade_no"`
//	AccType          string `json:"acc_type"`
//	BusiType         string `json:"busi_type"`
//	LogNo            string `json:"log_no"`
//	PayMode          string `json:"pay_mode"`
//	PayerAmount      int64  `json:"payer_amount"`
//	SettleMerchantNo string `json:"settle_merchant_no"`
//	SettleTermNo     string `json:"settle_term_no"`
//	TradeAmount      int64  `json:"trade_amount"`
//	TradeNo          string `json:"trade_no"`
//	TradeStatus      string `json:"trade_status"`
//	TradeTime        string `json:"trade_time"`
//	TradeType        string `json:"trade_type"`
//	UserId1          string `json:"user_id1"`
//	UserId2          string `json:"user_id2"`
//}

40 41 42 43 44 45 46 47
// CallbackResponse is 回调给业务方的信息
type CallbackResponse struct {
	OutTradeNo    string `json:"out_trade_no"`   // 订单号
	ReturnMsg     string `json:"return_msg"`     // 是否成功
	AttachInfo    string `json:"attach_info"`    // 附加信息
	TransactionID string `json:"transaction_id"` // 微信支付订单号
	TradeNo       string `json:"trade_no"`       // 支付宝交易流水号
}