feat(domain): add find_by_id to UserRepository + SQLite impl

This commit is contained in:
2026-05-04 13:28:20 +02:00
parent 7f815f8207
commit 6e7c6467a7
17 changed files with 790 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ pub trait AuthService: Send + Sync {
pub trait UserRepository: Send + Sync {
async fn find_by_email(&self, email: &Email) -> Result<Option<User>, DomainError>;
async fn save(&self, user: &User) -> Result<(), DomainError>;
async fn find_by_id(&self, id: &UserId) -> Result<Option<User>, DomainError>;
}
#[async_trait]