| | |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @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) { |