| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "获取仪表盘列表") |
| | | @PreAuthorize("@ss.hasPermission('bi:dashboard:query')") |
| | | public CommonResult<List<BiDashboardDO>> getDashboardList() { |
| | | return success(dashboardService.getDashboardList()); |
| | | } |
| | |
| | | @Operation(summary = "获取仪表盘数据") |
| | | @Parameter(name = "dashboardCode", description = "仪表盘编码", required = true, |
| | | example = "purchase_sales") |
| | | @PreAuthorize("@ss.hasPermission('bi:dashboard:query')") |
| | | public CommonResult<List<Map<String, Object>>> getDashboardData( |
| | | @PathVariable("dashboardCode") String dashboardCode, |
| | | @RequestBody(required = false) Map<String, Object> params) { |