whyclxw
2024-09-02 f56f93430cdc8d46a11fbd79c52c63005bc61b30
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.db_lithium_ram_db.DevActmTestparam;
import com.whyc.service.DevActmTestparamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
@RestController
@Api(tags = "actm均衡仪控制操作")
@RequestMapping("actmparam")
public class DevActmTestparamController {
 
    @Autowired
    private DevActmTestparamService service;
 
    @ApiOperation(value = "读取actm均衡仪参数")
    @GetMapping("getActmParam")
    public Response getActmParam(@RequestParam int devId){
        return service.getActmParam(devId);
    }
 
    @ApiOperation(value = "设置actm均衡仪参数")
    @PostMapping("setActmParam")
    public Response setActmParam(@RequestBody DevActmTestparam param){
        return service.setActmParam(param);
    }
 
    @ApiOperation(value = "控制actm均衡仪")
    @GetMapping("controllActmParam")
    public Response controllActmParam(@RequestParam int devId){
        return service.controllActmParam(devId);
    }
 
    @ApiOperation(value = "批量控制actm均衡仪")
    @GetMapping("controllActmParamPl")
    public Response controllActmParamPl(@RequestParam List<Integer> devIds){
        return service.controllActmParamPl(devIds);
    }
}