| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | @Api(tags = "设备") |
| | |
| | | @GetMapping("getDinf") |
| | | public Response getDinf(){ |
| | | return service.getDinf(); |
| | | } |
| | | @ApiOperation(value = "根据设备id获取设备信息") |
| | | @GetMapping("getDinfById") |
| | | public Response getDinfById(@RequestParam Integer devId){ |
| | | return service.getDinfById(devId); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取左侧列表") |
| | |
| | | public Response cancelContPl(@RequestBody List<Integer> devIds){ |
| | | return service.cancelContPl(devIds); |
| | | } |
| | | |
| | | @ApiOperation(value = "测试设备统计") |
| | | @GetMapping("getDevStaticByType") |
| | | public Map<String,Object> getDevStaticByType(){ |
| | | return service.getDevStaticByType(101); |
| | | } |
| | | } |