@GetMapping("/{id}")
    public DataResult<ChartVO> get(@PathVariable("id") Long id) {
        ChartQueryParam param = new ChartQueryParam();
        param.setId(id);
        param.setUserId(ContextUtils.getUserId());
        return chartService.queryExistent(param)
            .map(chartWebConverter::model2vo);
    }
Query chart details based on id

@param id
@return
chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/dashboard/ChartController.java