mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-29 10:43:06 +08:00
feat(postgresql): Added database user query function
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user