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"`
|
|
|
|
}
|
|
|
|
|
2024-10-27 20:58:17 +08:00
|
|
|
type CreatePartnerOrderReq struct {
|
|
|
|
PayType string `json:"payType"`
|
|
|
|
PaySource string `json:"paySource"`
|
|
|
|
PayPrice int64 `json:"payPrice"`
|
|
|
|
GoodsName string `json:"goodsName"`
|
|
|
|
OutTradeNo string `json:"outTradeNo"`
|
|
|
|
NotifyUrl string `json:"notifyUrl"`
|
|
|
|
PartnerId string `json:"partnerId"`
|
|
|
|
Extra interface{} `json:"extra"`
|
|
|
|
}
|
|
|
|
|
2024-11-04 14:45:46 +08:00
|
|
|
type RefundOrderReq struct {
|
2024-11-04 14:41:07 +08:00
|
|
|
OutTradeNo string `json:"outTradeNo"`
|
|
|
|
Reason string `json:"reason,omitempty"`
|
|
|
|
RefundFee int64 `json:"refundFee,omitempty"`
|
|
|
|
}
|
|
|
|
|
2024-01-21 18:12:39 +08:00
|
|
|
type CommonResponse struct {
|
|
|
|
Code int `json:"code"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
Data map[string]interface{} `json:"data"`
|
|
|
|
}
|