|
|
@ -51,6 +51,16 @@ func (b *banner) Del(ctx context.Context, id uint) (err error) {
|
|
|
|
return xClient.Call(ctx, "Del", id, &reply)
|
|
|
|
return xClient.Call(ctx, "Del", id, &reply)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DelBySkuId @Title 根据skuId删除
|
|
|
|
|
|
|
|
func (b *banner) DelBySkuId(ctx context.Context, skuId uint) (err error) {
|
|
|
|
|
|
|
|
xClient, err := client.GetClient(b)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
reply := 0
|
|
|
|
|
|
|
|
return xClient.Call(ctx, "DelBySkuId", skuId, &reply)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type ArgsSkuBannerAdd struct {
|
|
|
|
type ArgsSkuBannerAdd struct {
|
|
|
|
SkuId uint
|
|
|
|
SkuId uint
|
|
|
|
Img string
|
|
|
|
Img string
|
|
|
|