From 46fced4196fc682280399836945dfbef5a7dd338 Mon Sep 17 00:00:00 2001 From: lrodham Date: Thu, 30 Nov 2017 20:16:11 +0000 Subject: [PATCH] fixed duplicated struct --- commands/common.go | 6 ++++-- commands/get_item.go | 5 ----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/commands/common.go b/commands/common.go index a6d6d51..a395043 100644 --- a/commands/common.go +++ b/commands/common.go @@ -38,7 +38,8 @@ type Storefront struct { type ProductListingDetails struct { UPC string - BrandMPN BrandMPN + BrandMPN BrandMPN `xml:"BrandMPN"` + EAN string `xml:"EAN"` } type PrimaryCategory struct { @@ -55,7 +56,8 @@ type NameValueList struct { } type BrandMPN struct { - Brand, MPN string + Brand string `xml:"Brand"` + MPN string `xml:"MPN"` } type BestOfferDetails struct { diff --git a/commands/get_item.go b/commands/get_item.go index 2268a1a..c36173e 100644 --- a/commands/get_item.go +++ b/commands/get_item.go @@ -57,8 +57,3 @@ type ItemResponse struct { type PictureDetails struct { } - -type ProductListingDetails struct { - BrandMPN BrandMPN `xml:"BrandMPN"` - EAN string `xml:"EAN"` -}