fg电池监控平台的达梦数据库版本
whycxzp
2024-11-12 ab33c86571fb15516aab7960d123bfc34c291bc9
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.Dev6159PowerParam;
import com.whyc.service.Dev6159PowerParamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@RestController
@RequestMapping("dev6159Param")
@Api(tags = "6159电源控制")
public class Dev6159PowerParamController {
    @Autowired
    private Dev6159PowerParamService service;
 
 
    @ApiOperation("读取6159交流配电参数")
    @GetMapping("getDev6159ACParam")
    public Response getDev6159ACParam( @RequestParam int devId){
        return service.getDev6159ACParam(devId);
    }
 
    @ApiOperation("设置6159交流配电参数")
    @PostMapping("setDev6159ACParam")
    public Response setDev6159ACParam(@RequestBody Dev6159PowerParam param){
        return service.setDev6159ACParam(param);
    }
 
    @ApiOperation("读取6159直流配电参数")
    @GetMapping("getDev6159DCParam")
    public Response getDev6159DCParam( @RequestParam int devId){
        return service.getDev6159DCParam(devId);
    }
 
    @ApiOperation("设置6159直流配电参数")
    @PostMapping("setDev6159DCParam")
    public Response setDev6159DCParam(@RequestBody Dev6159PowerParam param){
        return service.setDev6159DCParam(param);
    }
 
 
    @ApiOperation("读取6159整流模块参数")
    @GetMapping("getDev6159RectifierParam")
    public Response getDev6159RectifierParam( @RequestParam int devId){
        return service.getDev6159RectifierParam(devId);
    }
 
    @ApiOperation("设置6159整流模块参数")
    @PostMapping("setDev6159RectifierParam")
    public Response setDev6159RectifierParam(@RequestBody Dev6159PowerParam param){
        return service.setDev6159RectifierParam(param);
    }
 
    @ApiOperation("6159开关控制")
    @GetMapping("setDev6159Swtich")
    public Response setDev6159Swtich(@RequestParam int devId,@RequestParam String swtichName,@RequestParam int swtichState){
        return service.setDev6159Swtich(devId,swtichName,swtichState);
    }
 
    @ApiOperation("整流模块控制")
    @GetMapping("setDev6159RectifModel")
    public Response setDev6159RectifModel(@RequestParam int devId,@RequestParam int ctlNum,@RequestParam int ctlState){
        return service.setDev6159RectifModel(devId,ctlNum,ctlState);
    }
}