zhibing.pu
2024-09-11 aa7727d8ed9eca34f8126c3dc5a80fbdf9ad56cd
ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TRepairController.java
@@ -7,6 +7,9 @@
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.*;
@@ -45,6 +48,7 @@
   @ResponseBody
   @PostMapping("/addRepair")
   @ApiOperation(value = "添加报修记录", tags = {"管理后台-设备监控"})
   @Log(title = "【设备监控】添加报修记录", businessType = BusinessType.INSERT,operatorType = OperatorType.MANAGE)
   public AjaxResult addRepair(@RequestBody TRepair repair){
      repairService.save(repair);
      return AjaxResult.success();
@@ -54,6 +58,7 @@
   @ResponseBody
   @DeleteMapping("/delRepair/{id}")
   @ApiOperation(value = "删除报修记录", tags = {"管理后台-设备监控"})
   @Log(title = "【设备监控】删除报修记录", businessType = BusinessType.DELETE,operatorType = OperatorType.MANAGE)
   public AjaxResult delRepair(@PathVariable Integer id){
      repairService.removeById(id);
      return AjaxResult.success();