application: auth bounded context (register, login)

This commit is contained in:
2026-07-12 01:49:34 +02:00
parent 848d4752e2
commit 2976600d12
14 changed files with 480 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
use std::sync::Arc;
use domain::ports::{AuthService, EventPublisher, UserCommand, UserQuery};
/// Dependencies for auth use cases.
///
/// Aggregates the ports required by register/login operations.
/// Built once at startup and shared via `Arc<AuthDeps>` or passed by reference.
pub struct AuthDeps {
pub user_command: Arc<dyn UserCommand>,
pub user_query: Arc<dyn UserQuery>,
pub auth_service: Arc<dyn AuthService>,
pub event_publisher: Arc<dyn EventPublisher>,
}