package com.gkhy.fourierSpecialGasMonitor.controller; import com.gkhy.fourierSpecialGasMonitor.commons.domain.Result; import com.gkhy.fourierSpecialGasMonitor.commons.model.PageQuery; import com.gkhy.fourierSpecialGasMonitor.entity.query.FindGasCategoryPageQuery; import com.gkhy.fourierSpecialGasMonitor.entity.query.FindGasWarnLogPageQuery; import com.gkhy.fourierSpecialGasMonitor.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") public Result handleGasWarnLog(@RequestParam Long id){ Result result = gasWarnLogService.handleGasWarnLog(id); return result; } }