use crate::tina::server::session::Session;
#[async_trait]
pub trait IPermissionService: Send + Sync + 'static {
fn has_permi(&self, session: &Session, permission: &str) -> bool;
fn lacks_permi(&self, session: &Session, permission: &str) -> bool;
fn has_any_permi(&self, session: &Session, permission: &str) -> bool;
fn has_role(&self, session: &Session, role: &str) -> bool;
fn lacks_role(&self, session: &Session, role: &str) -> bool;
fn has_any_roles(&self, session: &Session, roles: &str) -> bool;
}