| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.ActmPlContDto; |
| | | import com.whyc.dto.ActmResDto; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.db_lithium_ram_db.DevActmTestparam; |
| | | import com.whyc.service.DevActmTestparamService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @Autowired |
| | | private DevActmTestparamService service; |
| | | |
| | | @ApiOperation(value = "读取actm均衡仪参数") |
| | | @ApiOperation(value = "读取actm一体机参数") |
| | | @GetMapping("getActmParam") |
| | | public Response getActmParam(@RequestParam int devId){ |
| | | return service.getActmParam(devId); |
| | | public Object getActmParam(@RequestParam int devId,@RequestParam int index){ |
| | | return service.getActmParam(devId,index); |
| | | } |
| | | |
| | | @ApiOperation(value = "设置actm均衡仪参数") |
| | | @PostMapping("setActmParam") |
| | | public Response setActmParam(@RequestBody DevActmTestparam param){ |
| | | public Object setActmParam(@RequestBody ActmResDto param){ |
| | | return service.setActmParam(param); |
| | | } |
| | | |
| | | @ApiOperation(value = "控制actm均衡仪") |
| | | @GetMapping("controllActmParam") |
| | | public Response controllActmParam(@RequestParam int devId){ |
| | | return service.controllActmParam(devId); |
| | | @ApiOperation(value = "批量设置actm均衡仪参数") |
| | | @PostMapping("setActmParamPl") |
| | | public Object setActmParamPl(@RequestBody ActmResDto param){ |
| | | return service.setActmParamPl(param); |
| | | } |
| | | |
| | | @ApiOperation(value = "批量设置actm均衡仪参数(多线程)") |
| | | @PostMapping("setActmParamPl2") |
| | | public Object setActmParamPl2(@RequestBody ActmResDto param){ |
| | | return service.setActmParamPl2(param); |
| | | } |
| | | @ApiOperation(value = "启动,暂停,继续,停止actm均衡仪") |
| | | @GetMapping("controllerActmParam") |
| | | public Object controllerActmParam(@RequestParam int devId,@RequestParam int index,@RequestParam int type){ |
| | | return service.controllerActmParam(devId,index,type); |
| | | } |
| | | |
| | | @ApiOperation(value = "批量控制actm均衡仪") |
| | | @GetMapping("controllActmParamPl") |
| | | public Response controllActmParamPl(@RequestParam List<Integer> devIds){ |
| | | return service.controllActmParamPl(devIds); |
| | | @PostMapping("controllActmParamPl") |
| | | public Response controllActmParamPl(@RequestBody List<Integer> devIds,@RequestParam int index,@RequestParam int type){ |
| | | return service.controllActmParamPl(devIds,index,type); |
| | | } |
| | | |
| | | @ApiOperation(value = "设置电池组数与电池节数") |
| | | @PostMapping("setActmBatteryStorageNumber") |
| | | public Object setActmBatteryStorageNumber(@RequestBody ActmResDto param){ |
| | | return service.setActmBatteryStorageNumber(param); |
| | | } |
| | | |
| | | @ApiOperation(value = "批量设设置电池组数与电池节数") |
| | | @PostMapping("setActmBatteryStorageNumberPl") |
| | | public Object setActmBatteryStorageNumberPl(@RequestBody ActmResDto param){ |
| | | return service.setActmBatteryStorageNumberPl(param); |
| | | } |
| | | |
| | | } |