package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.pojo.db_ckpwrdev_data_rt.CKPowerDevHrTestParam;
|
import com.whyc.service.CKPowerDevHrTestParamService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
@RestController
|
@Api(tags = "测控核容装置")
|
@RequestMapping("ckPowerDevHrTestParam")
|
public class CKPowerDevHrTestParamController {
|
|
@Autowired
|
private CKPowerDevHrTestParamService service;
|
|
@ApiOperation("读取核容参数")
|
@GetMapping("getBattDisParam")
|
public Response getBattDisParam(){
|
return service.getBattDisParam();
|
}
|
|
@ApiOperation("读取核容设备IP")
|
@GetMapping("getDevIp")
|
public Response getDevIp(){
|
return service.getDevIp();
|
}
|
|
|
@ApiOperation(value = "设置参数或设备ip",notes = "必须传入op_cmd,设置核容参数时=48,设置设备IP时=54")
|
@PostMapping("update")
|
public Response update(@RequestBody CKPowerDevHrTestParam set){
|
return service.update(set);
|
}
|
|
@ApiOperation("设置启动或停止")
|
@PostMapping("updateStartOrStop")
|
public Response updateStartOrStop(@RequestBody CKPowerDevHrTestParam set){
|
return service.update(set);
|
}
|
|
}
|