From 73de81a5ae1705d7e376b0ac2beeaaf37a6acf89 Mon Sep 17 00:00:00 2001 From: dingawm Date: Tue, 17 May 2022 20:42:33 +0800 Subject: [PATCH] bug fix --- doc_examples/addOrderSubInfo/main.go | 2 +- openapi/addOrderSubInfo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_examples/addOrderSubInfo/main.go b/doc_examples/addOrderSubInfo/main.go index 8439254..0efe238 100644 --- a/doc_examples/addOrderSubInfo/main.go +++ b/doc_examples/addOrderSubInfo/main.go @@ -26,7 +26,7 @@ func main() { } AddOrderSubInfoRequestDataItemEXTSubsOrderItemsItemRefundVal := openapi.AddOrderSubInfoRequestDataItemEXTSubsOrderItemsItemRefund{ - Amount: "1315", // 文档中对应字段:Amount,实际使用时请替换成真实参数 + Amount: 1315, // 文档中对应字段:Amount,实际使用时请替换成真实参数 Product: []openapi.AddOrderSubInfoRequestDataItemEXTSubsOrderItemsItemRefundProductItem{ AddOrderSubInfoRequestDataItemEXTSubsOrderItemsItemRefundProductItemVal, // 文档中对应字段:Product,实际使用时请替换成真实参数 }, diff --git a/openapi/addOrderSubInfo.go b/openapi/addOrderSubInfo.go index 28d4604..45b892c 100644 --- a/openapi/addOrderSubInfo.go +++ b/openapi/addOrderSubInfo.go @@ -25,7 +25,7 @@ type AddOrderSubInfoRequestDataItemEXTSubsOrderItemsItemRefundProductItem struct Quantity int64 `json:"Quantity"` // 售后商品数量 } type AddOrderSubInfoRequestDataItemEXTSubsOrderItemsItemRefund struct { - Amount string `json:"Amount"` // 退款总金额(单位:分),即100为1元。 + Amount int64 `json:"Amount"` // 退款总金额(单位:分),即100为1元。 Product []AddOrderSubInfoRequestDataItemEXTSubsOrderItemsItemRefundProductItem `json:"Product"` // 售后商品列表 } type AddOrderSubInfoRequestDataItemEXTSubsOrderItemsItem struct {