|
|
@ -79,3 +79,18 @@ func (i *item) DelAll(ctx context.Context, skuTypeId uint) error {
|
|
|
|
reply := 0
|
|
|
|
reply := 0
|
|
|
|
return xClient.Call(ctx, "DelAll", skuTypeId, &reply)
|
|
|
|
return xClient.Call(ctx, "DelAll", skuTypeId, &reply)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type ArgsBySKuIds struct {
|
|
|
|
|
|
|
|
SkuIds []uint
|
|
|
|
|
|
|
|
SkuTypeId uint
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FindBySkuIds @Title 根据SkuId查询数据
|
|
|
|
|
|
|
|
func (i *item) FindBySkuIds(ctx context.Context, args ArgsBySKuIds) (reply []SkuItem, err error) {
|
|
|
|
|
|
|
|
xClient, err := client.GetClient(s)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return nil, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
err = xClient.Call(ctx, "FindBySkuIds", args, &reply)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|