refactor(users): Deprecate unused user APIs and stabilize v1 APIs (#6114)

This commit is contained in:
Mani Chandra
2024-10-04 16:59:11 +05:30
committed by GitHub
parent 98722ae191
commit b2eb56e8d8
18 changed files with 80 additions and 1260 deletions

View File

@ -1,8 +1,6 @@
pub use common_enums::PermissionGroup;
use common_enums::{EntityType, RoleScope};
use super::Permission;
#[derive(Debug, serde::Deserialize, serde::Serialize)]
pub struct CreateRoleRequest {
pub role_name: String,
@ -16,17 +14,6 @@ pub struct UpdateRoleRequest {
pub role_name: Option<String>,
}
#[derive(Debug, serde::Serialize)]
pub struct ListRolesResponse(pub Vec<RoleInfoWithGroupsResponse>);
#[derive(Debug, serde::Serialize)]
pub struct RoleInfoWithPermissionsResponse {
pub role_id: String,
pub permissions: Vec<Permission>,
pub role_name: String,
pub role_scope: RoleScope,
}
#[derive(Debug, serde::Serialize)]
pub struct RoleInfoWithGroupsResponse {
pub role_id: String,