@ -69,3 +69,13 @@ func (i *item) Lists(ctx context.Context, args ArgsSkuItemLists) (reply ReplySku
err = xClient.Call(ctx, "Lists", args, &reply)
return
}
// DelAll @Title 删除全部商品
func (i *item) DelAll(ctx context.Context, skuTypeId uint) error {
xClient, err := client.GetClient(i)
if err != nil {
return err
reply := 0
return xClient.Call(ctx, "DelAll", skuTypeId, &reply)
@ -79,3 +79,14 @@ func (s *sale) GetImg(ctx context.Context) (reply string, err error) {
err = xClient.Call(ctx, "GetImg", args, &reply)
func (s *sale) DelAll(ctx context.Context) error {
xClient, err := client.GetClient(s)
args := 0
return xClient.Call(ctx, "DelAll", args, &reply)