gosdk/unify/pay_type.go

41 lines
1.2 KiB
Go
Raw Permalink Normal View History

2024-06-28 22:07:15 +08:00
package unify
2024-01-21 18:12:39 +08:00
type OrderUser struct {
UserId string `json:"userId"`
UserName string `json:"userName"`
2024-06-06 20:54:45 +08:00
UserBucket string `json:"userBucket"`
2024-01-21 18:12:39 +08:00
CreateTime string `json:"createTime"`
Openid string `json:"openid"`
Source string `json:"source"`
SourceId string `json:"sourceId"`
MobileBrand string `json:"brand"`
MobileModel string `json:"model"`
Platform string `json:"platform"`
Channel string `json:"channel"`
Version string `json:"version"`
}
type OrderGoods struct {
GoodsId string `json:"goodsId"`
GoodsName string `json:"goodsName"`
Source string `json:"source"`
Autopay string `json:"autopay"`
}
type CreateOrderReq struct {
OutTradeNo string `json:"outTradeNo"`
PayType string `json:"payType"`
PayChannel string `json:"payChannel"`
PayPrice int64 `json:"payPrice"`
PaySource string `json:"paySource"`
NotifyUrl string `json:"notifyUrl"`
Extra interface{} `json:"extra"`
User *OrderUser `json:"user,omitempty"`
Goods *OrderGoods `json:"goods,omitempty"`
}
type CommonResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data map[string]interface{} `json:"data"`
}