| | |
| | | */ |
| | | @DataDictClass |
| | | @ApiOperation("查询IoT设备列表") |
| | | @PreAuthorize("@ss.hasPermi('oa:iot:list')") |
| | | // @PreAuthorize("@ss.hasPermi('oa:iot:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo<SgIotVo> list(@Validated(QueryGroup.class) SgIotBo bo) { |
| | | return iSgIotService.queryPageList(bo); |
| | |
| | | * 获取IoT设备详细信息 |
| | | */ |
| | | @ApiOperation("获取IoT设备详细信息") |
| | | @PreAuthorize("@ss.hasPermi('oa:iot:query')") |
| | | // @PreAuthorize("@ss.hasPermi('oa:iot:query')") |
| | | @GetMapping("/{id}") |
| | | public AjaxResult<SgIotVo> getInfo(@ApiParam("主键") |
| | | @NotNull(message = "主键不能为空") |
| | |
| | | * 新增IoT设备 |
| | | */ |
| | | @ApiOperation("新增IoT设备") |
| | | @PreAuthorize("@ss.hasPermi('oa:iot:add')") |
| | | // @PreAuthorize("@ss.hasPermi('oa:iot:add')") |
| | | @Log(title = "IoT设备", businessType = BusinessType.INSERT) |
| | | @RepeatSubmit() |
| | | @PostMapping() |
| | |
| | | * 修改IoT设备 |
| | | */ |
| | | @ApiOperation("修改IoT设备") |
| | | @PreAuthorize("@ss.hasPermi('oa:iot:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('oa:iot:edit')") |
| | | @Log(title = "IoT设备", businessType = BusinessType.UPDATE) |
| | | @RepeatSubmit() |
| | | @PutMapping() |
| | |
| | | * 删除IoT设备 |
| | | */ |
| | | @ApiOperation("删除IoT设备") |
| | | @PreAuthorize("@ss.hasPermi('oa:iot:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('oa:iot:remove')") |
| | | @Log(title = "IoT设备" , businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult<Void> remove(@ApiParam("主键串") |