From 417037f710c3f7ed0fa64aa53c72855c5a3c7b45 Mon Sep 17 00:00:00 2001 From: sian Date: Mon, 1 Aug 2022 15:25:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=95=86=E5=93=81=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/sku.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/supply/sku.go b/supply/sku.go index 620fd9a..b572774 100644 --- a/supply/sku.go +++ b/supply/sku.go @@ -147,6 +147,34 @@ func (s *sku) Lists(ctx context.Context, args ArgsSkuLists) (reply ReplySkuList, return } +type SkuInfo struct { + Id uint + Name string // 名称 + BrandName string // 品牌名称 + FirstCategoryId uint // 一级分类id + SecondCategoryId uint // 二级分类id + ThirdCategoryId uint // 三级分类id + SupplyPrice decimal.Decimal // 采购价 + GuidePrice decimal.Decimal // 指导价 + ImgUrl string // 商品主图 + PlatformStatus uint // 平台状态 1=上架 2=下架 + SourceName string // 供应商名称 + SourceSkuId string // 源skuId + SourceStatus uint // 供应商状态 1=上架 2=下架 + CustomerPrice decimal.Decimal // 供货最高价 + CustomerProfitRate decimal.Decimal // 供货利润率 供货利润/供货最高价% + AdjustType uint // 加价类型 + AdjustPrice decimal.Decimal // 加价金额 + Handle uint // 1=未处理 2=已处理 + Reason string // 驳回原因 +} + +// Info @Title 商品信息 +func (s *sku) Info(ctx context.Context, skuId uint) (reply SkuInfo, err error) { + err = client.GetClient(s).Call(ctx, "Info", skuId, &reply) + return +} + type ArgsSkuOnShelves struct { SkuIds []uint }