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("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 Integer vbusIrefSet){
|
return service.controllVBusVref(powerId,vbusIrefSet);
|
}
|
|
@ApiOperation(value = "设置LLCBuck电压")
|
@GetMapping("controllLLCBuckVol")
|
public Response controllLLCBuckVol(@RequestParam Integer powerId,@RequestParam Integer llcBuckvolSet){
|
return service.controllLLCBuckVol(powerId,llcBuckvolSet);
|
}
|
|
@ApiOperation(value = "设置LLCBuck电流")
|
@GetMapping("controllLLCBuckCurr")
|
public Response controllLLCBuckCurr(@RequestParam Integer powerId,@RequestParam Integer llcBuckcurrSet){
|
return service.controllLLCBuckCurr(powerId,llcBuckcurrSet);
|
}
|
}
|