广告删除接口

This commit is contained in:
张松 2025-03-01 10:50:00 +08:00
parent b29e9c8557
commit 9c5567a432
1 changed files with 10 additions and 0 deletions

View File

@ -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())));
}
}