package com.ruoyi.chargingPile.controller; import com.ruoyi.chargingPile.api.model.TChargingPileNotification; import com.ruoyi.chargingPile.service.TChargingPileNotificationService; import com.ruoyi.common.core.web.domain.AjaxResult; import com.ruoyi.common.core.web.page.BasePage; import com.ruoyi.common.core.web.page.PageInfo; import com.ruoyi.common.log.annotation.Log; import com.ruoyi.common.log.enums.BusinessType; import com.ruoyi.common.log.enums.OperatorType; import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; /** *

* 前端控制器 *

* * @author xiaochen * @since 2024-08-08 */ @RestController @RequestMapping("/t-charging-pile-notification") public class TChargingPileNotificationController { @Resource private TChargingPileNotificationService chargingPileNotificationService; @ResponseBody @GetMapping("/chargingPileNotificationPageList") @ApiOperation(value = "获取系统通知列表数据", tags = {"管理后台-系统通知"}) public AjaxResult> chargingPileNotificationPageList(Integer siteId, BasePage basePage){ PageInfo pageInfo = chargingPileNotificationService.chargingPileNotificationPageList(siteId, basePage); return AjaxResult.success(pageInfo); } @ResponseBody @DeleteMapping("/delChargingPileNotification") @ApiOperation(value = "删除系统通知", tags = {"管理后台-系统通知"}) @Log(title = "【系统通知】删除系统通知", businessType = BusinessType.DELETE,operatorType = OperatorType.MANAGE) public AjaxResult delChargingPileNotification(@RequestParam("id") Long id){ TChargingPileNotification chargingPileNotification = chargingPileNotificationService.getById(id); chargingPileNotificationService.removeById(chargingPileNotification); return AjaxResult.success(); } }