|
|
@ -14,6 +14,9 @@ type GoodsSearch struct {
|
|
|
|
CategoryId uint64 // 类目id
|
|
|
|
CategoryId uint64 // 类目id
|
|
|
|
BrandName string // 品牌名
|
|
|
|
BrandName string // 品牌名
|
|
|
|
Handle uint // 处理状态 1=待处理 2=入库 3=废弃
|
|
|
|
Handle uint // 处理状态 1=待处理 2=入库 3=废弃
|
|
|
|
|
|
|
|
SkuId uint // 供应商skuId
|
|
|
|
|
|
|
|
MinSupplyPrice decimal.Decimal // 最小采购价
|
|
|
|
|
|
|
|
MaxSupplyPrice decimal.Decimal // 最大采购价
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type ArgsGoodsList struct {
|
|
|
|
type ArgsGoodsList struct {
|
|
|
|
Search GoodsSearch
|
|
|
|
Search GoodsSearch
|
|
|
@ -168,3 +171,18 @@ func (g *goods) ReHandle(ctx context.Context, goodsIds []uint) (reply []AdoptIte
|
|
|
|
err = xClient.Call(ctx, "ReHandle", goodsIds, &reply)
|
|
|
|
err = xClient.Call(ctx, "ReHandle", goodsIds, &reply)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type ReplyByIdItem struct {
|
|
|
|
|
|
|
|
GoodsId uint `json:"goodsId"`
|
|
|
|
|
|
|
|
SourceName string `json:"sourceName"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FindByIds @Title 根据商品Ids获取商品信息
|
|
|
|
|
|
|
|
func (g *goods) FindByIds(ctx context.Context, goodsIds []uint) (reply []AdoptItem, err error) {
|
|
|
|
|
|
|
|
xClient, err := client.GetClient(g)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return nil, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
err = xClient.Call(ctx, "FindByIds", goodsIds, &reply)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|