@ -50,3 +50,18 @@ func (b *banner) Del(ctx context.Context, id uint) (err error) {
reply := 0
return xClient.Call(ctx, "Del", id, &reply)
}
type ArgsSkuBannerAdd struct {
SkuId uint
Img string
// Add @Title 添加轮播图
func (b *banner) Add(ctx context.Context, args ArgsSkuBannerEdit) error {
xClient, err := client.GetClient(b)
if err != nil {
return err
return xClient.Call(ctx, "Add", args, &reply)