74 lines
3.0 KiB
Plaintext
74 lines
3.0 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:"account"` // 充值账号
|
|
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-失败
|
|
}
|
|
|
|
type GetOrderReq {
|
|
DeliverOrderNo string `json:"deliverOrderNo"` // 平台订单号
|
|
SupplierId int64 `json:"supplierId"` // 供货商id
|
|
RequestTime int64 `json:"requestTime"` // 请求时间
|
|
Sign string `json:"sign"`
|
|
SupplierOrderNo string `json:"supplierOrderNo"` // 供货商订单号
|
|
}
|
|
|
|
type GetOrderRsp {
|
|
DeliverOrderNo string `json:"deliverOrderNo"` // 平台订单号
|
|
SupplierOrderNo string `json:"supplierOrderNo"` // 供货商订单号
|
|
SupplierSkuId int64 `json:"supplierSkuId"` // 供货商sku
|
|
Count int64 `json:"count"` //数量(此字段只目前支持是金豆,积分等虚拟资产,其他商品不支持)
|
|
SendStatus int `json:"sendStatus"` // 发货状态: 0-发货中 1-发货成功 2-发货失败
|
|
Price int64 `json:"price"` //结算价格(单位:厘)
|
|
StatusTime int64 `json:"statusTime"` // 成功/失败时间
|
|
Msg string `json:"msg"` // 失败原因
|
|
SupplierId int64 `json:"supplierId"` // 供货商id
|
|
CardNo string `json:"cardNo"` // 卡号,可为空字符串
|
|
CardKey string `json:"cardKey"` // 卡密,可为空字符串
|
|
CardExpireTime string `json:"cardExpireTime"` // 卡密过期时间,可为空字符串
|
|
CardExchangeUrl string `json:"cardExchangeUrl"` // 卡密兑换地址,可为空字符串
|
|
} |