| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.BattDto; |
| | | import com.whyc.dto.PowerDto; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.db_station.BattInf; |
| | |
| | | @Autowired |
| | | private BattInfService service; |
| | | |
| | | /* |
| | | @ApiOperation(value = "添加电源") |
| | | |
| | | @ApiOperation(value = "添加电池组") |
| | | @PostMapping("addBatt") |
| | | public Response addBatt(@RequestBody BattInf binf){ |
| | | return service.addBatt(binf); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除电源") |
| | | @ApiOperation(value = "删除电池组") |
| | | @GetMapping("delBatt") |
| | | public Response delBatt(@RequestParam Integer bid){ |
| | | return service.delBatt(bid); |
| | | } |
| | | |
| | | @ApiOperation(value = "修改电源") |
| | | @ApiOperation(value = "修改电池组") |
| | | @PostMapping("updateBatt") |
| | | public Response updateBatt(@RequestBody BattInf binf){ |
| | | return service.updateBatt(binf); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询电源") |
| | | @ApiOperation(value = "查询电池组") |
| | | @PostMapping("getBatt") |
| | | public Response getBatt(@RequestBody PowerDto dto){ |
| | | public Response getBatt(@RequestBody BattDto dto){ |
| | | return service.getBatt(dto); |
| | | }*/ |
| | | } |
| | | } |