diff --git a/customer/sku/item.go b/customer/sku/item.go index e3d275c..c1a5b8d 100644 --- a/customer/sku/item.go +++ b/customer/sku/item.go @@ -46,6 +46,7 @@ func (i *item) Del(ctx context.Context, args ArgsSkuItemDel) error { type ArgsSkuItemLists struct { SkuTypeId uint + SkuId uint Page bean.Page } diff --git a/customer/sku/sale.go b/customer/sku/sale.go index 61b16a8..f110a00 100644 --- a/customer/sku/sale.go +++ b/customer/sku/sale.go @@ -15,7 +15,7 @@ type SaleHandleItem struct { } // Add @Title 添加 -func (s *sale) Add(ctx context.Context, skuIds []uint) (reply []SaleSkuItem, err error) { +func (s *sale) Add(ctx context.Context, skuIds []uint) (reply []SaleHandleItem, err error) { xClient, err := client.GetClient(s) if err != nil { return nil, err @@ -24,13 +24,18 @@ func (s *sale) Add(ctx context.Context, skuIds []uint) (reply []SaleSkuItem, err return } +type ArgsSaleLists struct { + SkuId uint + Page bean.Page +} + // Lists @Title 商品列表 -func (s *sale) Lists(ctx context.Context, page bean.Page) (reply ReplySaleSkuItemLists, err error) { +func (s *sale) Lists(ctx context.Context, args ArgsSaleLists) (reply ReplySaleSkuItemLists, err error) { xClient, err := client.GetClient(s) if err != nil { return ReplySaleSkuItemLists{}, err } - err = xClient.Call(ctx, "Lists", page, &reply) + err = xClient.Call(ctx, "Lists", args, &reply) return }