application: auth bounded context (register, login)
This commit is contained in:
14
crates/application/src/auth/deps.rs
Normal file
14
crates/application/src/auth/deps.rs
Normal 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>,
|
||||
}
|
||||
Reference in New Issue
Block a user