fix: NEZ-2142 修改接口响应格式,保持与接口文档一致
This commit is contained in:
@@ -29,7 +29,7 @@ public class OSHIController extends BaseController{
|
|||||||
HashMap<Object, Object> data = Tool.MapUtil.newHashMap();
|
HashMap<Object, Object> data = Tool.MapUtil.newHashMap();
|
||||||
data.put("list" ,result);
|
data.put("list" ,result);
|
||||||
|
|
||||||
return R.ok(result);
|
return R.ok(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/oshi/netstat")
|
@GetMapping("/oshi/netstat")
|
||||||
@@ -38,6 +38,6 @@ public class OSHIController extends BaseController{
|
|||||||
HashMap<Object, Object> data = Tool.MapUtil.newHashMap();
|
HashMap<Object, Object> data = Tool.MapUtil.newHashMap();
|
||||||
data.put("list" ,result);
|
data.put("list" ,result);
|
||||||
|
|
||||||
return R.ok(result);
|
return R.ok(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user