|
|
@@ -183,7 +183,7 @@ public class ItMonitorController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("/resource/set")
|
|
|
- public Result<?> setItMonitorResource(ItMonitorResource itMonitorResource) { // 只允许修改名称
|
|
|
+ public Result<?> setItMonitorResource(@RequestBody ItMonitorResource itMonitorResource) { // 只允许修改名称
|
|
|
if (itMonitorResource.getResourceId() == null || itMonitorResource.getResourceName() == null || itMonitorResource.getResourceName().isEmpty()) {
|
|
|
return new Result<>(ResultCode.FAILED_PARAM_INVALID);
|
|
|
}
|