whycxzp
2025-03-27 fe09517300727fd547e9926c9ba407386715435d
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
35
36
37
38
39
40
41
42
43
44
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.Dev6185Almparam;
import com.whyc.service.Dev6185AlmparamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@RequestMapping("dev6185Almparam")
@RestController
@Api(tags = "核容6185专属告警配置")
public class Dev6185AlmparamController {
    @Autowired
    private Dev6185AlmparamService service;
 
    @ApiOperation(value = "6185参数设置")
    @PostMapping("set6185Alarm")
    public Response set6185Alarm(@RequestBody Dev6185Almparam par){
        return  service.set6185Alarm(par);
    }
 
    @ApiOperation(value = "6185参数读取")
    @GetMapping("get6185Alarm")
    public Response get6185Alarm(@RequestParam int devId){
        return  service.get6185Alarm(devId);
    }
 
 
    @ApiOperation(value = "6186/6286(485通讯)参数设置")
    @PostMapping("set6186Alarm")
    public Response set6186Alarm(@RequestBody Dev6185Almparam par){
        return  service.set6186Alarm(par);
    }
 
    @ApiOperation(value = "6186/6286(485通讯)参数读取")
    @GetMapping("get6186Alarm")
    public Response get6186Alarm(@RequestParam int devId,@RequestParam int battgroupnum){
        return  service.get6186Alarm(devId,battgroupnum);
    }
 
 
}