class SysLogController {
    /**
     * 系统日志索引名
     */
    private static final String SYS_LOG_INDEXNAME = "sys-log-*";

    @Resource
    private IQueryService queryService;

    @Resource
    private TraceLogService traceLogService;

    @Operation(summary = "系统日志全文搜索列表")
    @GetMapping(value = "/sysLog")
    public PageResult<JsonNode> sysLog(SearchDto searchDto) {
        return queryService.strQuery(SYS_LOG_INDEXNAME, searchDto);
    }

    @Operation(summary = "系统日志链路列表")
    @GetMapping(value = "/traceLog")
    public PageResult<TraceLog> traceLog(SearchDto searchDto) {<FILL_FUNCTION_BODY>}
}

        PageResult<JsonNode> pageResult = queryService.strQuery(SYS_LOG_INDEXNAME, searchDto);
        List<JsonNode> jsonNodeList = pageResult.getData();
        List<TraceLog> logList;
        if (jsonNodeList != null) {
            logList = traceLogService.transTraceLog(jsonNodeList);
        } else {
            logList = new ArrayList<>(0);
        }
        return PageResult.<TraceLog>builder().data(logList).code(0).count((long) logList.size()).build();
    
<no_super_class>