domain: add Storage ports (BYOS, Quota, LibraryPath) and QuotaChecker service
This commit is contained in:
9
crates/domain/src/ports/ingest_session_repo.rs
Normal file
9
crates/domain/src/ports/ingest_session_repo.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
use async_trait::async_trait;
|
||||
use crate::{entities::IngestSession, errors::DomainError, value_objects::SystemId};
|
||||
|
||||
#[async_trait]
|
||||
pub trait IngestSessionRepository: Send + Sync {
|
||||
async fn find_by_id(&self, id: &SystemId) -> Result<Option<IngestSession>, DomainError>;
|
||||
async fn find_by_user(&self, user_id: &SystemId) -> Result<Vec<IngestSession>, DomainError>;
|
||||
async fn save(&self, session: &IngestSession) -> Result<(), DomainError>;
|
||||
}
|
||||
Reference in New Issue
Block a user