|
@@ -34,7 +34,7 @@ public class TwinDeviceController extends BaseController {
|
|
|
* 查询设备管理列表
|
|
|
*/
|
|
|
@ApiOperation("查询设备管理列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('biz:device:list')")
|
|
|
+ //@PreAuthorize("@ss.hasPermi('biz:device:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(TwinDevice twinDevice) {
|
|
|
startPage();
|
|
@@ -46,7 +46,7 @@ public class TwinDeviceController extends BaseController {
|
|
|
* 导出设备管理列表
|
|
|
*/
|
|
|
@ApiOperation("导出设备管理列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('biz:device:export')")
|
|
|
+ //@PreAuthorize("@ss.hasPermi('biz:device:export')")
|
|
|
@Log(title = "设备管理", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, TwinDevice twinDevice) {
|
|
@@ -59,7 +59,7 @@ public class TwinDeviceController extends BaseController {
|
|
|
* 获取设备管理详细信息
|
|
|
*/
|
|
|
@ApiOperation("获取设备管理详细信息")
|
|
|
- @PreAuthorize("@ss.hasPermi('biz:device:query')")
|
|
|
+ //@PreAuthorize("@ss.hasPermi('biz:device:query')")
|
|
|
@GetMapping(value = "/{deviceId}")
|
|
|
public AjaxResult getInfo(@PathVariable("deviceId") Long deviceId) {
|
|
|
return success(twinDeviceService.selectTwinDeviceByDeviceId(deviceId));
|
|
@@ -69,7 +69,7 @@ public class TwinDeviceController extends BaseController {
|
|
|
* 新增设备管理
|
|
|
*/
|
|
|
@ApiOperation("新增设备管理")
|
|
|
- @PreAuthorize("@ss.hasPermi('biz:device:add')")
|
|
|
+ //@PreAuthorize("@ss.hasPermi('biz:device:add')")
|
|
|
@Log(title = "设备管理", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody TwinDevice twinDevice) {
|
|
@@ -80,7 +80,7 @@ public class TwinDeviceController extends BaseController {
|
|
|
* 修改设备管理
|
|
|
*/
|
|
|
@ApiOperation("修改设备管理")
|
|
|
- @PreAuthorize("@ss.hasPermi('biz:device:edit')")
|
|
|
+ //@PreAuthorize("@ss.hasPermi('biz:device:edit')")
|
|
|
@Log(title = "设备管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody TwinDevice twinDevice) {
|
|
@@ -91,7 +91,7 @@ public class TwinDeviceController extends BaseController {
|
|
|
* 删除设备管理
|
|
|
*/
|
|
|
@ApiOperation("删除设备管理")
|
|
|
- @PreAuthorize("@ss.hasPermi('biz:device:remove')")
|
|
|
+ //@PreAuthorize("@ss.hasPermi('biz:device:remove')")
|
|
|
@Log(title = "设备管理", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{deviceIds}")
|
|
|
public AjaxResult remove(@PathVariable Long[] deviceIds) {
|