You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
729 B
39 lines
729 B
package supply
|
|
|
|
import (
|
|
"context"
|
|
"git.oa00.com/supply-chain/service/client"
|
|
)
|
|
|
|
type skuTag struct {
|
|
}
|
|
type ArgsSkuTagAdds struct {
|
|
SkuIds []uint // skuIds
|
|
TagIds []uint // tagIds
|
|
}
|
|
|
|
// Adds @Title 添加标签
|
|
func (s *skuTag) Adds(ctx context.Context, args ArgsSkuTagAdds) error {
|
|
reply := 0
|
|
xClient, err := client.GetClient(s)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return xClient.Call(ctx, "Adds", args, &reply)
|
|
}
|
|
|
|
type ArgsSkuTagDel struct {
|
|
SkuId uint // skuId
|
|
TagIds []uint // tagIds
|
|
}
|
|
|
|
// Del @Title 删除标签
|
|
func (s *skuTag) Del(ctx context.Context, args ArgsSkuTagDel) error {
|
|
reply := 0
|
|
xClient, err := client.GetClient(s)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return xClient.Call(ctx, "Del", args, &reply)
|
|
}
|