Merge pull request #4511 from dataease/pr@dev@refactor_api-doc

refactor: Api文档整理
This commit is contained in:
王嘉豪 2023-02-10 14:13:54 +08:00 committed by GitHub
commit 9c6833f644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,7 @@ public class XAuthServer {
}
@GetMapping("/getDatasourceTypes")
@ApiOperation("查询授权的数据类型")
public List<DatasourceBaseType> getDatasourceTypes() {
Collection<DataSourceType> activeType = datasourceService.types();
Map<String, String> activeTypeMap = activeType.stream().collect(Collectors.toMap(DataSourceType::getType, DataSourceType::getName));