whycxzp
2025-05-29 c7e295d1dfdfeb8b092e757b68b374912705ef15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.service.IdentifyAlarmService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.lang.reflect.InvocationTargetException;
 
@RestController
@RequestMapping("identifyAlarm")
@Api("算法识别报警")
public class IdentifyAlarmController {
 
    @Autowired
    private IdentifyAlarmService identifyAlarmService;
 
    @PostMapping("confirm")
    public Response confirm(@RequestParam int id) throws InvocationTargetException, IllegalAccessException {
        return identifyAlarmService.confirm(id);
    }
 
}