广告删除接口
This commit is contained in:
parent
b29e9c8557
commit
9c5567a432
|
|
@ -88,4 +88,14 @@ public class ShopAdController {
|
|||
shopAd.setShopId(StpKit.USER.getShopId());
|
||||
return CzgResult.success(shopAdService.save(shopAd));
|
||||
}
|
||||
|
||||
/**
|
||||
* 小程序广告删除
|
||||
* @return 是否成功
|
||||
*/
|
||||
@SaAdminCheckPermission(value = "shopAd:del", name = "小程序广告添加")
|
||||
@DeleteMapping
|
||||
public CzgResult<Boolean> delete(@RequestBody @Validated(UpdateGroup.class) ShopAdDTO shopAd) {
|
||||
return CzgResult.success(shopAdService.remove(new QueryWrapper().eq(ShopAd::getShopId, StpKit.USER.getShopId()).eq(ShopAd::getId, shopAd.getId())));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue