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