|
@@ -1,36 +1,36 @@
|
|
-package com.backendsys.controller.api.Systems;
|
|
|
|
-
|
|
|
|
-import com.backendsys.service.System.SysActuatorService;
|
|
|
|
-import com.backendsys.service.System.SysDictionaryService;
|
|
|
|
-import com.backendsys.utils.response.Result;
|
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
-
|
|
|
|
-@RestController
|
|
|
|
-public class SysActuatorController {
|
|
|
|
-
|
|
|
|
- @Autowired
|
|
|
|
- private SysActuatorService sysActuatorService;
|
|
|
|
-
|
|
|
|
- //@GetMapping("/api/actuator/metricsInfo")
|
|
|
|
- //public Result metricsInfo() {
|
|
|
|
- // return Result.success(sysActuatorService.requestActuatorMetrics());
|
|
|
|
- //}
|
|
|
|
- @GetMapping("/api/system/actuator/systemInfo")
|
|
|
|
- public Result systemInfo() {
|
|
|
|
- return Result.success(sysActuatorService.querySystemInfo());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @RestController
|
|
|
|
- public static class SysDictionaryController<T> {
|
|
|
|
- @Autowired
|
|
|
|
- private SysDictionaryService sysDictionaryService;
|
|
|
|
-
|
|
|
|
- @GetMapping("/api/public/system/sysDictionary")
|
|
|
|
- public Result getDictionary(T data) {
|
|
|
|
- return Result.success(sysDictionaryService.queryDictionary(data));
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-}
|
|
|
|
|
|
+//package com.backendsys.controller.api.Systems;
|
|
|
|
+//
|
|
|
|
+//import com.backendsys.service.System.SysActuatorService;
|
|
|
|
+//import com.backendsys.service.System.SysDictionaryService;
|
|
|
|
+//import com.backendsys.utils.response.Result;
|
|
|
|
+//import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+//import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
+//import org.springframework.web.bind.annotation.RestController;
|
|
|
|
+//
|
|
|
|
+//@RestController
|
|
|
|
+//public class SysActuatorController {
|
|
|
|
+//
|
|
|
|
+// @Autowired
|
|
|
|
+// private SysActuatorService sysActuatorService;
|
|
|
|
+//
|
|
|
|
+// //@GetMapping("/api/actuator/metricsInfo")
|
|
|
|
+// //public Result metricsInfo() {
|
|
|
|
+// // return Result.success(sysActuatorService.requestActuatorMetrics());
|
|
|
|
+// //}
|
|
|
|
+// @GetMapping("/api/system/actuator/systemInfo")
|
|
|
|
+// public Result systemInfo() {
|
|
|
|
+// return Result.success(sysActuatorService.querySystemInfo());
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+// @RestController
|
|
|
|
+// public static class SysDictionaryController<T> {
|
|
|
|
+// @Autowired
|
|
|
|
+// private SysDictionaryService sysDictionaryService;
|
|
|
|
+//
|
|
|
|
+// @GetMapping("/api/public/system/sysDictionary")
|
|
|
|
+// public Result getDictionary(T data) {
|
|
|
|
+// return Result.success(sysDictionaryService.queryDictionary(data));
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+//}
|