domain: add Storage ports (BYOS, Quota, LibraryPath) and QuotaChecker service

This commit is contained in:
2026-05-31 03:23:38 +02:00
parent 3c5c4ed9b1
commit ed6eb0c28a
9 changed files with 211 additions and 1 deletions

View 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>;
}