feat(postgresql): Added database user query function

This commit is contained in:
Sylphy
2025-04-22 13:43:47 +08:00
parent 9c82ed6fce
commit 3cefa0c4c7
9 changed files with 70 additions and 15 deletions

View File

@ -150,4 +150,14 @@ public class DatabaseController {
}
return DataResult.of(task.getExportStatus());
}
/**
* Query the database_user_list contained in the database
*
* @return username list
*/
@GetMapping("/database_username_list")
public ListResult<String> databaseUsernameList(@Valid DataSourceBaseRequest dataSourceBaseRequest) {
return databaseService.getUsernameList();
}
}