|
@@ -38,7 +38,7 @@ public class IotDeviceController {
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/list")
|
|
@PostMapping("/list")
|
|
|
public Result<Object> list(@RequestBody @Validated DevicePage devicePage) {
|
|
public Result<Object> list(@RequestBody @Validated DevicePage devicePage) {
|
|
|
- return Result.ok(iotDeviceService.pageQuery(devicePage));
|
|
|
|
|
|
|
+ return Result.ok(iotDeviceService.pageQuery(devicePage),"查询成功");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -49,7 +49,7 @@ public class IotDeviceController {
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/save")
|
|
@PostMapping("/save")
|
|
|
public Result<Object> save(@RequestBody @Validated IotDevicePara iotDevicePara) {
|
|
public Result<Object> save(@RequestBody @Validated IotDevicePara iotDevicePara) {
|
|
|
- return Result.ok(iotDeviceService.save(iotDevicePara));
|
|
|
|
|
|
|
+ return Result.ok(iotDeviceService.save(iotDevicePara),"保存成功");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -60,7 +60,7 @@ public class IotDeviceController {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/detail")
|
|
@GetMapping("/detail")
|
|
|
public Result<Object> detail(@NotNull(message = "id不能为空") @Validated Long id) {
|
|
public Result<Object> detail(@NotNull(message = "id不能为空") @Validated Long id) {
|
|
|
- return Result.ok(iotDeviceService.detail(id));
|
|
|
|
|
|
|
+ return Result.ok(iotDeviceService.detail(id),"查询成功");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -71,7 +71,7 @@ public class IotDeviceController {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/modDetail")
|
|
@GetMapping("/modDetail")
|
|
|
public Result<Object> modDetail(@NotNull(message = "id不能为空") @Validated Long id) {
|
|
public Result<Object> modDetail(@NotNull(message = "id不能为空") @Validated Long id) {
|
|
|
- return Result.ok(iotDeviceService.detail(id));
|
|
|
|
|
|
|
+ return Result.ok(iotDeviceService.detail(id),"查询成功");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|