pub mod member;
use crate::PlatformConfig;
use std::sync::Arc;
#[derive(Debug, Clone)]
pub struct RoleService {
config: Arc<PlatformConfig>,
namespace: String,
role_api_name: String,
}
impl RoleService {
pub fn new(
config: Arc<PlatformConfig>,
namespace: impl Into<String>,
role_api_name: impl Into<String>,
) -> Self {
Self {
config,
namespace: namespace.into(),
role_api_name: role_api_name.into(),
}
}
pub fn member(&self) -> member::RoleMemberService {
member::RoleMemberService::new(
self.config.as_ref().clone(),
self.namespace.clone(),
self.role_api_name.clone(),
)
}
}