| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获取数据源配置") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('bi:data-source-config:query')") |
| | | public CommonResult<BiDataSourceConfigDO> get(@RequestParam("id") Long id) { |
| | | return success(dataSourceConfigService.get(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "分页查询数据源配置") |
| | | @PreAuthorize("@ss.hasPermission('bi:data-source-config:query')") |
| | | public CommonResult<PageResult<BiDataSourceConfigDO>> getPage( |
| | | @RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) { |