whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/controller/UpspwrdevAlarmController.java
@@ -7,10 +7,7 @@
import com.whyc.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@@ -26,4 +23,21 @@
    public Response getAlmReal(@RequestBody UpsAlarmDTO upsAlarmDTO){
        return service.getAlmReal(upsAlarmDTO);
    }
    @GetMapping("setAlmIsConfirmed")
    @ApiOperation(value = "ups告警确认")
    public Response setAlmIsConfirmed(@RequestParam int num){
        return service.setAlmIsConfirmed(num);
    }
    @GetMapping("cancleAlmIsConfirmed")
    @ApiOperation(value = "ups告警取消")
    public Response cancleAlmIsConfirmed(@RequestParam int num){
        return service.cancleAlmIsConfirmed(num);
    }
    @GetMapping("delAlm")
    @ApiOperation(value = "ups告警删除")
    public Response delAlm(@RequestParam int num){
        return service.delAlm(num);
    }
}