diff --git a/customer/sku/item.go b/customer/sku/item.go index 8171e24..e3d275c 100644 --- a/customer/sku/item.go +++ b/customer/sku/item.go @@ -29,14 +29,19 @@ func (i *item) Add(ctx context.Context, args ArgsSkuItemAdd) (reply []ReplySkuIt return } +type ArgsSkuItemDel struct { + SkuTypeId uint + SkuIds []uint +} + // Del @Title 删除商品 -func (i *item) Del(ctx context.Context, ids []uint) error { +func (i *item) Del(ctx context.Context, args ArgsSkuItemDel) error { xClient, err := client.GetClient(i) if err != nil { return err } reply := 0 - return xClient.Call(ctx, "Del", ids, &reply) + return xClient.Call(ctx, "Del", args, &reply) } type ArgsSkuItemLists struct { diff --git a/supplier/goods.go b/supplier/goods.go index d298a14..b5628d6 100644 --- a/supplier/goods.go +++ b/supplier/goods.go @@ -98,6 +98,7 @@ type SkuSpecItem struct { } type SkuItem struct { + SkuId uint `json:"skuId"` Color string `json:"color"` Size string `json:"size"` SupplyPrice decimal.Decimal `json:"supplyPrice"`