package com.whyc.controller; import com.whyc.dto.AlmHis.BattAlmPar; import com.whyc.dto.AlmHis.DevAlmPar; import com.whyc.dto.AlmHis.PwrAlmPar; import com.whyc.dto.Real.AlmDto; import com.whyc.dto.Response; import com.whyc.service.AlarmHisService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; 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 java.text.ParseException; @RestController @Api(tags = "告警历史管理") @RequestMapping("almHis") public class AlarmHistoryController { @Autowired private AlarmHisService service; @PostMapping("getBattAlmHis") @ApiOperation(value = "电池告警历史记录查询") public Response serchByInfo(@RequestBody BattAlmPar almDto) throws ParseException, InterruptedException { return service.getBattAlmHis(almDto); } @PostMapping("getDevAlmHis") @ApiOperation(value = "设备告警历史记录查询") public Response getDevAlmHis(@RequestBody DevAlmPar almDto) throws ParseException, InterruptedException { return service.getDevAlmHis(almDto); } @PostMapping("getPwrAlmHis") @ApiOperation(value = "电源告警历史记录查询") public Response getPwrAlmHis(@RequestBody PwrAlmPar almDto) throws ParseException, InterruptedException { return service.getPwrAlmHis(almDto); } }