提交 f54764ad authored 作者: zhanglibo's avatar zhanglibo

天猫订单列表

上级 8be3512b
......@@ -151,60 +151,62 @@ type OrderFilter struct {
}
type OrderListRes struct {
Code string `json:"Code"`
Message string `json:"Message"`
RequestId string `json:"RequestId"`
Success bool `json:"Success"`
PostFee struct {
PostFee struct {
FundAmount int `json:"FundAmount"`
FundType string `json:"FundType"`
FundAmount int64 `json:"FundAmount"`
FundAmountMoney uint `json:"FundAmountMoney"`
FundAmountMoney int `json:"FundAmountMoney"`
} `json:"PostFee"`
RequestId string `json:"RequestId"`
Message string `json:"Message"`
PageSize int `json:"PageSize"`
PageNumber int `json:"PageNumber"`
LmOrderList struct {
OrderIds struct {
OrderIds []string `json:"OrderIds"`
} `json:"OrderIds"`
PayTradeIds struct {
PayTradeIds []string `json:"PayTradeIds"`
} `json:"PayTradeIds"`
LmOrderList []struct {
LmOrderId string `json:"LmOrderId"` //订单号,对外统一使用此ID做主键操作
OrderStatus int `json:"OrderStatus"` //订单状态,6=交易成功
OrderAmount uint `json:"OrderAmount"` //订单总金额
TbOrderId string `json:"TbOrderId"` //淘宝订单号
EnableStatus int `json:"EnableStatus"`
CreateDate string `json:"CreateDate"`
SubOrderList struct {
PostFee struct {
FundAmount int `json:"FundAmount"`
FundType string `json:"FundType"`
FundAmountMoney int `json:"FundAmountMoney"`
} `json:"PostFee"`
ExtJson string `json:"ExtJson"`
OrderStatus int `json:"OrderStatus"`
ShopName string `json:"ShopName"`
EnableStatus int `json:"EnableStatus"`
TbOrderId int64 `json:"TbOrderId"`
OrderAmount int `json:"OrderAmount"`
FundStructureModels struct {
FundStructureModels []struct {
FundAmount int `json:"FundAmount"`
FundType string `json:"FundType"`
FundAmountMoney int `json:"FundAmountMoney"`
} `json:"FundStructureModels"`
} `json:"FundStructureModels"`
CreateDate string `json:"CreateDate"`
LmOrderId int `json:"LmOrderId"`
LogisticsStatus int `json:"LogisticsStatus"`
SubOrderList struct {
SubOrderList []struct {
ItemId int64 `json:"ItemId"`
OrderStatus int `json:"OrderStatus"` //订单状态,6=交易成功
LmOrderId string `json:"LmOrderId"` //子订单号
TbOrderId string `json:"TbOrderId"` //淘宝子订单号
SkuId string `json:"SkuId"` //下单的商品SkuId
Number int64 `json:"Number"` //下单数量
EnableStatus int `json:"EnableStatus"`
ItemPic string `json:"ItemPic"` //商品图片
ItemPriceList struct {
ItemPriceList []struct {
FundAmount int `json:"FundAmount"`
FundType string `json:"FundType"`
FundAmount int64 `json:"FundAmount"`
FundAmountMoney uint `json:"FundAmountMoney"` //子订单金额,以分为单位
FundAmountMoney int `json:"FundAmountMoney"`
} `json:"ItemPriceList"`
} `json:"ItemPriceList"`
ItemTitle string `json:"ItemTitle"` //商品名称
SkuName string `json:"SkuName"` //下单的商品SKU显示名称
OrderStatus int `json:"OrderStatus"`
Number int `json:"Number"`
EnableStatus int `json:"EnableStatus"`
TbOrderId int64 `json:"TbOrderId"`
ItemTitle string `json:"ItemTitle"`
SkuName string `json:"SkuName"`
ItemPic string `json:"ItemPic"`
SkuId string `json:"SkuId"`
ItemId int64 `json:"ItemId"`
LmOrderId int `json:"LmOrderId"`
} `json:"SubOrderList"`
} `json:"SubOrderList"`
PostFee struct {
FundType string `json:"FundType"`
FundAmount int64 `json:"FundAmount"`
FundAmountMoney int64 `json:"FundAmountMoney"`
} `json:"PostFee"`
LogisticsStatus int64 `json:"LogisticsStatus"` //物流状态
} `json:"LmOrderList"`
} `json:"LmOrderList"`
Code string `json:"Code"`
}
//List 列表
......@@ -233,7 +235,7 @@ func (s *orderTm) List(ctx context.Context, req OrderListReq) (res *OrderListRes
}
result, err := post(ctx, method, request)
_ = gjson.New(result).Scan(&res)
_ = json.Unmarshal([]byte(result), &res)
return
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论