refactor(user_roles): Populate role names and entity names in user role APIs (#5861)

This commit is contained in:
Mani Chandra
2024-09-13 18:26:26 +05:30
committed by GitHub
parent 6fc2060620
commit 4d28cf276f
12 changed files with 373 additions and 100 deletions

View File

@ -188,6 +188,7 @@ pub struct GetUserRoleDetailsResponseV2 {
pub profile: Option<NameIdUnit<String, id_type::ProfileId>>,
pub status: UserStatus,
pub entity_type: EntityType,
pub role_name: String,
}
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]

View File

@ -63,5 +63,5 @@ pub enum RoleCheckType {
#[derive(Debug, serde::Serialize, Clone)]
pub struct MinimalRoleInfo {
pub role_id: String,
pub role_name: Option<String>,
pub role_name: String,
}