package com.whyc.controller;
|
|
import com.whyc.dto.FBS9100_ComBase;
|
import com.whyc.dto.Response;
|
import com.whyc.pojo.DfxtBmsParam;
|
import com.whyc.service.DfxtBmsParamService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
@RestController
|
@Api(tags = "东峰设备")
|
@RequestMapping("dfxtBmsParam")
|
public class DfxtBmsParamController {
|
|
@Autowired
|
private DfxtBmsParamService service;
|
|
@ApiOperation("启动放电")
|
@PostMapping("startDischarge")
|
public Response startDischarge(@RequestParam Integer devId){
|
return service.operate(FBS9100_ComBase.CMD_StartDischarge_DF,devId);
|
}
|
|
@ApiOperation("停止放电")
|
@PostMapping("stopDischarge")
|
public Response stopDischarge(@RequestParam Integer devId){
|
return service.operate(FBS9100_ComBase.CMD_StopDischarge_DF,devId);
|
}
|
|
@ApiOperation("启动充电")
|
@PostMapping("startCharge")
|
public Response startCharge(@RequestParam Integer devId){
|
return service.operate(FBS9100_ComBase.CMD_StartChrCharge_DF,devId);
|
}
|
|
@ApiOperation("停止充电")
|
@PostMapping("stopCharge")
|
public Response stopCharge(@RequestParam Integer devId){
|
return service.operate(FBS9100_ComBase.CMD_StopChrCharge_DF,devId);
|
}
|
|
}
|