Merge branch 'master' of git.oa00.com:supply-chain/service

finance
黄伟 2 years ago
commit fcadf8bb56

@ -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 {

@ -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"`

Loading…
Cancel
Save