| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获取图表配置") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('bi:chart-config:query')") |
| | | public CommonResult<BiChartConfigDO> get(@RequestParam("id") Long id) { |
| | | return success(chartConfigService.get(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "分页查询图表配置") |
| | | @PreAuthorize("@ss.hasPermission('bi:chart-config:query')") |
| | | public CommonResult<PageResult<BiChartConfigDO>> getPage( |
| | | @RequestParam(value = "dashboardId", required = false) Long dashboardId, |
| | | @RequestParam(value = "name", required = false) String name, |
| | | @RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) { |
| | | return success(chartConfigService.getPage(dashboardId, pageNo, pageSize)); |
| | | return success(chartConfigService.getPage(dashboardId, name, pageNo, pageSize)); |
| | | } |
| | | |
| | | } |