lxw
2023-11-30 88203633967bb3df44f6abba2a3a826b4c8d897c
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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.db_ckpwrdev_data_rt.CKPowerDevAlmParam;
import com.whyc.service.CKPowerDevAlmParamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@RestController
@Api(tags = "测控电源告警参数")
@RequestMapping("ckPowerDevAlmParam")
public class CKPowerDevAlmParamController {
 
    @Autowired
    private CKPowerDevAlmParamService service;
 
    @ApiOperation("读取告警参数")
    @GetMapping ("getAlmParam")
    public Response getAlmParam(){
        return service.getAlmParam();
    }
 
 
    @ApiOperation("设置告警参数")
    @PostMapping("setAlmParam")
    public Response setAlmParam(@RequestBody CKPowerDevAlmParam almParam){
        return service.setAlmParam(almParam);
    }
}