增加商品信息接口

finance
黄伟 2 years ago
parent 71a3e9a074
commit 417037f710

@ -147,6 +147,34 @@ func (s *sku) Lists(ctx context.Context, args ArgsSkuLists) (reply ReplySkuList,
return 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 { type ArgsSkuOnShelves struct {
SkuIds []uint SkuIds []uint
} }

Loading…
Cancel
Save