Merge pull request #10665 from dataease/pr@dev-v2@refactor_auth

refactor(XPack): 优化新Tab预览等单独页面打开权限控制
This commit is contained in:
王嘉豪
2024-07-01 18:25:51 +08:00
committed by GitHub
3 changed files with 11 additions and 1 deletions

View File

@@ -163,6 +163,11 @@ public class DataVisualizationVO implements Serializable {
*/
private VisualizationWatermarkVO watermarkInfo;
/**
* 权限信息
*/
private Integer weight;
public DataVisualizationVO(Long id, String name, String type, Integer version, String canvasStyleData, String componentData, Map<Long, ChartViewDTO> canvasViewInfo, Map<Long, VisualizationTemplateExtendDataDTO> extendDataInfo) {
this.id = id;

View File

@@ -72,6 +72,11 @@ public interface InteractiveAuthApi {
@PostMapping("/checkAuth")
void checkAuth(@RequestBody BusiPerCheckDTO checkDTO);
@Operation(summary = "权限查询")
@ApiOperationSupport(order = 9)
@PostMapping("/queryAuth")
Integer queryAuth(@RequestBody BusiPerCheckDTO checkDTO);
@GetMapping("/query2Root/{id}/{flag}")
List<ResourceNodeVO> query2Root(@PathVariable("id") Long id, @PathVariable("flag") Integer flag);