兼容工具类
This commit is contained in:
+2
-2
@@ -1,6 +1,5 @@
|
||||
package xtools.app.sys.controller;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
@@ -12,6 +11,7 @@ import xtools.app.sys.model.dto.resp.SysHomeDataResp;
|
||||
import xtools.app.sys.service.SysHomeService;
|
||||
import xtools.boot.api.model.dto.Result;
|
||||
import xtools.extend.SysInfoUtils;
|
||||
import xtools.extend.dto.sys.OsInfo;
|
||||
import xtools.web.HeaderUtils;
|
||||
|
||||
/**
|
||||
@@ -40,7 +40,7 @@ public class SysHomeController {
|
||||
*/
|
||||
@Operation(summary = "运行时")
|
||||
@GetMapping("/runtime")
|
||||
public Result<JSONObject> runtime() {
|
||||
public Result<OsInfo> runtime() {
|
||||
return Result.ok(SysInfoUtils.get(true));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user