51 lines
1.6 KiB
Plaintext
51 lines
1.6 KiB
Plaintext
syntax = "v1"
|
|
|
|
|
|
|
|
type Empty {}
|
|
|
|
type Req{
|
|
DeliverOrderNo string `json:"deliverOrderNo"`
|
|
RequestTime int64 `json:"requestTime"`
|
|
CreateTime int64 `json:"createTime"`
|
|
SupplierSkuId int64 `json:"supplierSkuId"`
|
|
ThirdSkuId string `json:"thirdSkuId"`
|
|
SupplierId int64 `json:"supplierId"`
|
|
ExtendParams string `json:"extendParams"`
|
|
Sign string `json:"sign"`
|
|
}
|
|
|
|
|
|
|
|
|
|
type Resp{
|
|
CdKey string `json:"cdKey"`
|
|
CdNum string `json:"cdNum"`
|
|
ExchangeUrl string `json:"exchangeUrl"`
|
|
SupplierOrderNo string `json:"supplierOrderNo"`
|
|
startTime string `json:"startTime"`
|
|
endTime string `json:"endTime"`
|
|
}
|
|
|
|
|
|
type AsyncReq {
|
|
DeliverOrderNo string `json:"deliverOrderNo"` // 平台订单号
|
|
Price int64 `json:"price"` //结算价格(单位:厘)
|
|
RequestTime int64 `json:"requestTime"` // 请求时间
|
|
CreateTime int64 `json:"createTime"` // 订单创建时间,对账时间请用此时间
|
|
skuId int64 `json:"skuId"` // 平台sku
|
|
SupplierSkuId int64 `json:"supplierSkuId"` // 供货商sku
|
|
SupplierId int64 `json:"supplierId"` // 供货商id
|
|
Account string `json:"thirdSkuId"` // 充值账号
|
|
ExtendParams string `json:"extendParams"` // 额外参数
|
|
Count int64 `json:"count"` //数量(此字段只目前支持是金豆,积分等虚拟资产,其他商品不支持)
|
|
Sign string `json:"sign"`
|
|
}
|
|
|
|
|
|
type AsyncResp {
|
|
SupplierOrderNo string `json:"supplierOrderNo"` // 供货商订单号
|
|
Msg string `json:"msg"` // 返回信息
|
|
Status int `json:"status"` // 错误码: 0-成功 1-失败
|
|
}
|