From fc08e3930403d5de1d34b166bbe39a66ed612bb4 Mon Sep 17 00:00:00 2001 From: sian Date: Tue, 30 Aug 2022 18:17:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supplier/goods.go | 39 +++++++++++++-------------------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/supplier/goods.go b/supplier/goods.go index c2c3867..e2b421c 100644 --- a/supplier/goods.go +++ b/supplier/goods.go @@ -78,36 +78,23 @@ type ArgsGoodsInfo struct { SkuId uint } -//type ReplyGoodsInfo struct { -// Id uint -// Name string -// GoodsNum string -// BrandId uint -// BrandName string -// CategoryId uint -//} - type ReplyGoodsInfo struct { - Id uint `json:"id"` - Name string `json:"name"` - SupplierId uint `json:"supplierId"` - CategoryId uint `json:"categoryId"` - BrandId uint `json:"brandId"` - Imgs []string `json:"imgs"` - Content string `json:"content"` - Attributes []GoodsAttributeGroup `json:"attributes"` - Skus []SkuItem `json:"skus"` - Status uint `json:"status"` -} - -type GoodsAttributeGroup struct { - Name string `json:"name"` - Item []GoodsAttributeItem `json:"item"` + Id uint `json:"id"` + Name string `json:"name"` + SupplierId uint `json:"supplierId"` + CategoryId uint `json:"categoryId"` + BrandId uint `json:"brandId"` + Imgs []string `json:"imgs"` + Content string `json:"content"` + Attributes []GoodsAttributeItem `json:"attributes"` + Skus []SkuItem `json:"skus"` + Status uint `json:"status"` } type GoodsAttributeItem struct { - Name string `json:"name"` - Value string `json:"value"` + Name string `json:"name"` + Value string `json:"value"` + GroupName string `json:"groupName"` } type SkuSpecItem struct {