whyclxw
2024-09-02 16331f051216bbe274ca3b80fd2973055340594b
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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.db_lithium_ram_db.DevActmTestparam;
import com.whyc.service.DevA200TestparamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.client.RestTemplate;
 
import javax.annotation.Resource;
import java.util.List;
 
@RestController
@Api(tags = "a200一体机控制操作")
@RequestMapping("a200param")
public class DevA200TestparamController {
    @Autowired
    private DevA200TestparamService service;
 
 
    @ApiOperation(value = "读取a200一体机参数")
    @GetMapping("getA200Param")
    public Object getA200Param(@RequestParam int devId){
        return service.getA200Param(devId);
    }
 
    @ApiOperation(value = "设置a200均衡仪参数")
    @PostMapping("setA200Param")
    public Response setA200Param(@RequestBody DevActmTestparam param){
        return service.setA200Param(param);
    }
 
    @ApiOperation(value = "控制a200均衡仪")
    @GetMapping("controllA200Param")
    public Response controllA200Param(@RequestParam int devId){
        return service.controllA200Param(devId);
    }
 
    @ApiOperation(value = "批量控制a200均衡仪")
    @GetMapping("controllA200ParamPl")
    public Response controllA200ParamPl(@RequestParam List<Integer> devIds){
        return service.controllA200ParamPl(devIds);
    }
 
 
 
}