mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	refactor(users): Deprecate unused user APIs and stabilize v1 APIs (#6114)
This commit is contained in:
		| @ -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, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Mani Chandra
					Mani Chandra