huangzhen
2023-08-16 7b1878ed989949cb4a7aa16adab6fbe48b5325ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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<FindGasWarnLogPageQuery> pageQuery){
        Result result = gasWarnLogService.findGasWarnLogPage(pageQuery);
        return result;
    }
 
    @PostMapping("/handleById")
    public Result handleGasWarnLog(@RequestParam Long id){
        Result result = gasWarnLogService.handleGasWarnLog(id);
        return result;
    }
}