finance
黄伟 2 years ago
parent d1ac4c3df4
commit 81c9e9fb44

@ -1,4 +1,4 @@
package goods package supplier
import ( import (
"context" "context"
@ -13,7 +13,7 @@ const (
SkuStatusReject = 3 // 废弃商品 SkuStatusReject = 3 // 废弃商品
) )
type Goods struct { type goods struct {
} }
type GoodsSearch struct { type GoodsSearch struct {
Name string // 商品名称 Name string // 商品名称
@ -32,9 +32,8 @@ type GoodsItem struct {
Img string `json:"img"` Img string `json:"img"`
GoodsNum string `json:"goodsNum"` GoodsNum string `json:"goodsNum"`
CategoryId uint `json:"categoryId"` CategoryId uint `json:"categoryId"`
Category string `json:"category"`
BrandId uint `json:"brandId"` BrandId uint `json:"brandId"`
Brand string `json:"brand"` BrandName string `json:"brandName"`
GoodsSpecs []GoodsSpecificationItem `json:"goodsSpecs"` GoodsSpecs []GoodsSpecificationItem `json:"goodsSpecs"`
SkuItems []GoodsItemLists `json:"skuItems"` SkuItems []GoodsItemLists `json:"skuItems"`
StockCount uint `json:"stockCount"` StockCount uint `json:"stockCount"`
@ -67,7 +66,7 @@ type ReplyGoodsLists struct {
} }
// Lists @Title 获取商品列表 // Lists @Title 获取商品列表
func (s *Goods) Lists(ctx context.Context, args ArgsGoodsList) (reply ReplyGoodsLists, err error) { func (s *goods) Lists(ctx context.Context, args ArgsGoodsList) (reply ReplyGoodsLists, err error) {
xClient, err := client.GetClient(s) xClient, err := client.GetClient(s)
if err != nil { if err != nil {
return return

@ -1,7 +1,5 @@
package supplier package supplier
import "git.oa00.com/supply-chain/service/supplier/goods"
type Supplier struct { type Supplier struct {
Goods goods.Goods Goods goods
} }

Loading…
Cancel
Save