package com.gkhy.testFourierSpecialGasMonitor.controller; import com.gkhy.testFourierSpecialGasMonitor.annotation.RepeatedClick; import com.gkhy.testFourierSpecialGasMonitor.commons.domain.Result; import com.gkhy.testFourierSpecialGasMonitor.commons.model.PageQuery; import com.gkhy.testFourierSpecialGasMonitor.entity.query.FindGasWarnLogPageQuery; import com.gkhy.testFourierSpecialGasMonitor.entity.req.GasWarnLogCountByTimeReqDTO; import com.gkhy.testFourierSpecialGasMonitor.entity.req.GasWarnLogInfoReqDTO; import com.gkhy.testFourierSpecialGasMonitor.entity.req.HandleGasWarnLogReqDTO; import com.gkhy.testFourierSpecialGasMonitor.entity.req.WindRoseByTimeReqDTO; import com.gkhy.testFourierSpecialGasMonitor.service.GasWarnLogService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; /** * @author Mr.huang * @decription * @date 2023/8/9 16:46 */ @RestController @RequestMapping("/gasWarnLog") public class GasWarnLogController { @Autowired private GasWarnLogService gasWarnLogService; @PostMapping("/page") public Result findGasWarnLogPage(@RequestBody PageQuery pageQuery){ Result result = gasWarnLogService.findGasWarnLogPage(pageQuery); return result; } @PostMapping("/handleById") @RepeatedClick public Result handleGasWarnLog(@RequestBody HandleGasWarnLogReqDTO reqDto){ Result result = gasWarnLogService.handleGasWarnLog(reqDto); return result; } @PostMapping("/gasWarnLogCountByTime") public Result gasWarnLogCountByTime(@RequestBody GasWarnLogCountByTimeReqDTO gasWarnLogCountByTimeReqDTO){ Result result = gasWarnLogService.gasWarnLogCountByTime(gasWarnLogCountByTimeReqDTO); return result; } @PostMapping("/gasWarnLogInfoByTime") public Result gasWarnLogInfoByTime(@RequestBody GasWarnLogInfoReqDTO gasWarnLogInfoReqDTO){ Result result = gasWarnLogService.gasWarnLogInfoByTime(gasWarnLogInfoReqDTO); return result; } @PostMapping("/gasWindRoseByTime") public Result gasWindRoseByTime(@RequestBody WindRoseByTimeReqDTO reqDTO){ Result result = gasWarnLogService.gasWindRoseByTime(reqDTO); return result; } }