40 lines
1.2 KiB
Go
40 lines
1.2 KiB
Go
|
package payapi
|
||
|
|
||
|
type OrderUser struct {
|
||
|
UserId string `json:"userId"`
|
||
|
UserName string `json:"userName"`
|
||
|
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"`
|
||
|
}
|