use uuid::Uuid; use crate::error::UserResult; use crate::features::UserService; use super::types::{ListSessionsQuery, SessionView}; use super::usecase; impl UserService { pub async fn list_sessions( &self, caller: Uuid, q: ListSessionsQuery, ) -> UserResult> { usecase::list(self, caller, q).await } pub async fn revoke_session(&self, caller: Uuid, session_id: Uuid) -> UserResult<()> { usecase::revoke_one(self, caller, session_id).await } pub async fn revoke_all_sessions(&self, caller: Uuid) -> UserResult { usecase::revoke_all(self, caller).await } }