whyclxw
2024-12-04 e184cfdfa5d24da461c70d6fdcaacffd59649c72
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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.service.PowerSetparmService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
@RestController
@Api(tags = "控制管理")
@RequestMapping("setParam")
public class PowerSetparmController {
    @Autowired
    private PowerSetparmService service;
 
    @ApiOperation(value = "控制电源开机")
    @GetMapping("controllPowerOpen")
    public Response controllPowerOpen(@RequestParam Integer powerId){
        return service.controllPowerOpen(powerId);
    }
    @ApiOperation(value = "控制电源关机")
    @GetMapping("controllPowerClose")
    public Response controllPowerClose(@RequestParam Integer powerId){
        return service.controllPowerClose(powerId);
    }
 
    @ApiOperation(value = "清除变换器故障")
    @GetMapping("controllClearAlm")
    public Response controllClearAlm(@RequestParam Integer powerId){
        return service.controllClearAlm(powerId);
    }
 
    @ApiOperation(value = "设置电源工作模式:testModeSet(03-逆变并网06-PFC工作)")
    @GetMapping("controllTestModel")
    public Response controllTestModel(@RequestParam Integer powerId,@RequestParam Integer testModeSet){
        return service.controllTestModel(powerId,testModeSet);
    }
    @ApiOperation(value = "设置PFC模式VBus电压")
    @GetMapping("controllVBusVref")
    public Response controllVBusVref(@RequestParam Integer powerId,@RequestParam Float vbusIrefSet){
        return service.controllVBusVref(powerId,vbusIrefSet);
    }
 
    @ApiOperation(value = "设置LLCBuck电压")
    @GetMapping("controllLLCBuckVol")
    public Response controllLLCBuckVol(@RequestParam Integer powerId,@RequestParam Float llcBuckvolSet){
        return service.controllLLCBuckVol(powerId,llcBuckvolSet);
    }
 
    @ApiOperation(value = "设置LLCBuck电流")
    @GetMapping("controllLLCBuckCurr")
    public Response controllLLCBuckCurr(@RequestParam Integer powerId,@RequestParam Float llcBuckcurrSet){
        return service.controllLLCBuckCurr(powerId,llcBuckcurrSet);
    }
}