From 6ed64beecbef3b4cdbb80e12790d94925c03a725 Mon Sep 17 00:00:00 2001 From: tuannt20 <105765641+tuannt20@users.noreply.github.com> Date: Tue, 3 Jan 2023 09:21:06 +0700 Subject: [PATCH 1/2] update --- model/supplier_response.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/model/supplier_response.go b/model/supplier_response.go index c0e193d..9c47a05 100644 --- a/model/supplier_response.go +++ b/model/supplier_response.go @@ -2,13 +2,13 @@ package model // ResponseSupplierInfo ... type ResponseSupplierInfo struct { - ID string `json:"id"` - Name string `json:"name"` - BusinessType string `json:"businessType"` - Statistic *SupplierStatistic `json:"statistic"` - Rating float64 `json:"rating"` - Inventories *SKUCommonInfo `json:"inventories"` - Active bool `json:"active"` + ID string `json:"id"` + Name string `json:"name"` + BusinessType string `json:"businessType"` + Statistic SupplierStatistic `json:"statistic"` + Rating float64 `json:"rating"` + Inventories *[]SKUCommonInfo `json:"inventories"` + Active bool `json:"active"` } // SupplierStatistic ... From e4436002e820adb5ddc0a4210fc1aa36177fdb7a Mon Sep 17 00:00:00 2001 From: tuannt20 <105765641+tuannt20@users.noreply.github.com> Date: Tue, 3 Jan 2023 09:23:34 +0700 Subject: [PATCH 2/2] update --- model/supplier_response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/supplier_response.go b/model/supplier_response.go index 9c47a05..36f9666 100644 --- a/model/supplier_response.go +++ b/model/supplier_response.go @@ -7,7 +7,7 @@ type ResponseSupplierInfo struct { BusinessType string `json:"businessType"` Statistic SupplierStatistic `json:"statistic"` Rating float64 `json:"rating"` - Inventories *[]SKUCommonInfo `json:"inventories"` + Inventories []*SKUCommonInfo `json:"inventories"` Active bool `json:"active"` }