|
|
@ -145,14 +145,18 @@ type ArgsSkuOnShelves struct {
|
|
|
|
SkuIds []uint
|
|
|
|
SkuIds []uint
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type ArgsSkuDownShelves struct {
|
|
|
|
|
|
|
|
SkuIds []uint
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// OnShelves @Title 上架
|
|
|
|
// OnShelves @Title 上架
|
|
|
|
func (s *sku) OnShelves(ctx context.Context, args ArgsSkuLists) error {
|
|
|
|
func (s *sku) OnShelves(ctx context.Context, args ArgsSkuOnShelves) error {
|
|
|
|
reply := 0
|
|
|
|
reply := 0
|
|
|
|
return client.GetClient(s).Call(ctx, "OnShelves", args, &reply)
|
|
|
|
return client.GetClient(s).Call(ctx, "OnShelves", args, &reply)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// DownShelves @Title 下架
|
|
|
|
// DownShelves @Title 下架
|
|
|
|
func (s *sku) DownShelves(ctx context.Context, args ArgsSkuLists) error {
|
|
|
|
func (s *sku) DownShelves(ctx context.Context, args ArgsSkuDownShelves) error {
|
|
|
|
reply := 0
|
|
|
|
reply := 0
|
|
|
|
return client.GetClient(s).Call(ctx, "DownShelves", args, &reply)
|
|
|
|
return client.GetClient(s).Call(ctx, "DownShelves", args, &reply)
|
|
|
|
}
|
|
|
|
}
|
|
|
|