| | |
| | | package com.whyc.controller; |
| | | |
| | | 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){ |
| | | public Object getActmParam(@RequestParam int devId){ |
| | | return service.getActmParam(devId); |
| | | } |
| | | |
| | | @ApiOperation(value = "设置actm均衡仪参数") |
| | | @PostMapping("setActmParam") |
| | | public Response setActmParam(@RequestBody DevActmTestparam param){ |
| | | return service.setActmParam(param); |
| | | public Object setActmParam(@RequestBody ActmResDto param, @RequestParam int devId){ |
| | | return service.setActmParam(param,devId); |
| | | } |
| | | |
| | | @ApiOperation(value = "控制actm均衡仪") |
| | | @GetMapping("controllActmParam") |
| | | public Response controllActmParam(@RequestParam int devId){ |
| | | return service.controllActmParam(devId); |
| | | @ApiOperation(value = "启动actm均衡仪放电/充电") |
| | | @GetMapping("startActmParam") |
| | | public Object startActmParam(@RequestParam int devId,@RequestParam int type){ |
| | | return service.startActmParam(devId,type); |
| | | } |
| | | |
| | | @ApiOperation(value = "停止actm均衡仪放电/充电") |
| | | @GetMapping("stopActmParam") |
| | | public Object stopActmParam(@RequestParam int devId){ |
| | | return service.stopActmParam(devId); |
| | | } |
| | | |
| | | @ApiOperation(value = "批量控制actm均衡仪") |
| | |
| | | public Response controllActmParamPl(@RequestParam List<Integer> devIds){ |
| | | return service.controllActmParamPl(devIds); |
| | | } |
| | | |
| | | } |