|
|
@@ -49,30 +49,24 @@ public class SysController {
|
|
|
@Operation(summary = "系统访问日志页面", description = "N")
|
|
|
@GetMapping("/log/access")
|
|
|
public String accessLogPage() {
|
|
|
- int pageNumber = Integer.parseInt(ServletUtil.getRequestParam("pageNo", "1"));
|
|
|
- Page<AccessLogInfo> page = logService.getAccessLogs(pageNumber);
|
|
|
- return "/admin/sys/access_log";
|
|
|
+ return WebResult.success();
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "清空系统访问日志", description = "N")
|
|
|
@PostMapping(value = "/log/access/erase", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
public String eraseAccessLog() {
|
|
|
- logService.eraseAccessLog();
|
|
|
return WebResult.success();
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "系统运行日志页面", description = "N")
|
|
|
@GetMapping("/log/runtime")
|
|
|
public String runtimeLogPage() {
|
|
|
- int pageNumber = Integer.parseInt(ServletUtil.getRequestParam("pageNo", "1"));
|
|
|
- Page<RuntimeLogInfo> page = logService.getRuntimeLogs(pageNumber);
|
|
|
- return "/admin/sys/runtime_log";
|
|
|
+ return WebResult.success();
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "清空系统运行日志", description = "N")
|
|
|
@PostMapping(value = "/log/runtime/erase", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
public String eraseRuntimeLog() {
|
|
|
- logService.eraseRuntimeLog();
|
|
|
return WebResult.success();
|
|
|
}
|
|
|
|