|
@@ -6,9 +6,7 @@ import cn.reghao.tnb.message.app.soa.service.LoggingService;
|
|
|
import cn.reghao.tnb.message.app.soa.service.RuntimeLogService;
|
|
import cn.reghao.tnb.message.app.soa.service.RuntimeLogService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
-import org.springframework.data.domain.Page;
|
|
|
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.http.MediaType;
|
|
|
-import org.springframework.ui.Model;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
import java.text.ParseException;
|
|
import java.text.ParseException;
|
|
@@ -42,21 +40,14 @@ public class TnbLogController {
|
|
|
|
|
|
|
|
@Operation(summary = "访问日志页面")
|
|
@Operation(summary = "访问日志页面")
|
|
|
@GetMapping("/accesslog")
|
|
@GetMapping("/accesslog")
|
|
|
- public String accessLogPage(Model model) {
|
|
|
|
|
- try {
|
|
|
|
|
- model.addAttribute("page", Page.empty());
|
|
|
|
|
- return "/admin/tnb/sys/accesslog";
|
|
|
|
|
- } catch (Exception e) {
|
|
|
|
|
- model.addAttribute("message", e.getMessage());
|
|
|
|
|
- }
|
|
|
|
|
- return "/admin/errmsg";
|
|
|
|
|
|
|
+ public String accessLogPage() {
|
|
|
|
|
+ return WebResult.success();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Operation(summary = "运行日志页面", description = "N")
|
|
@Operation(summary = "运行日志页面", description = "N")
|
|
|
@GetMapping("/runtimelog")
|
|
@GetMapping("/runtimelog")
|
|
|
public String rtLogPage(@RequestParam(value = "app", required = false) String app,
|
|
public String rtLogPage(@RequestParam(value = "app", required = false) String app,
|
|
|
- @RequestParam(value = "host", required = false) String host,
|
|
|
|
|
- Model model) {
|
|
|
|
|
|
|
+ @RequestParam(value = "host", required = false) String host) {
|
|
|
List<SelectOption> appList;
|
|
List<SelectOption> appList;
|
|
|
List<SelectOption> hostList;
|
|
List<SelectOption> hostList;
|
|
|
Map<String, List<String>> map = runtimeLogService.getAppHostMap();
|
|
Map<String, List<String>> map = runtimeLogService.getAppHostMap();
|
|
@@ -80,11 +71,11 @@ public class TnbLogController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
runtimeLogService.getAppLogs(app, host);
|
|
runtimeLogService.getAppLogs(app, host);
|
|
|
- model.addAttribute("app", app);
|
|
|
|
|
|
|
+ /*model.addAttribute("app", app);
|
|
|
model.addAttribute("host", host);
|
|
model.addAttribute("host", host);
|
|
|
model.addAttribute("appList", appList);
|
|
model.addAttribute("appList", appList);
|
|
|
- model.addAttribute("hostList", hostList);
|
|
|
|
|
- return "/admin/tnb/sys/rtlog";
|
|
|
|
|
|
|
+ model.addAttribute("hostList", hostList);*/
|
|
|
|
|
+ return WebResult.success();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Operation(summary = "前一页运行日志", description = "N")
|
|
@Operation(summary = "前一页运行日志", description = "N")
|