refactor: rename application AppConfig to AppSettings

This commit is contained in:
2026-10-25 23:19:18 +01:00
parent cb5ffe2797
commit 980de9697a
10 changed files with 28 additions and 40 deletions

View File

@@ -2,26 +2,26 @@ use std::sync::Arc;
use domain::ports::{AuthService, PasswordHasher, RefreshSessionRepository, UserRepository};
use crate::config::AppConfig;
use crate::config::AppSettings;
pub struct LoginDeps {
pub user: Arc<dyn UserRepository>,
pub password_hasher: Arc<dyn PasswordHasher>,
pub auth: Arc<dyn AuthService>,
pub refresh_session: Arc<dyn RefreshSessionRepository>,
pub config: AppConfig,
pub config: AppSettings,
}
pub struct RegisterDeps {
pub user: Arc<dyn UserRepository>,
pub password_hasher: Arc<dyn PasswordHasher>,
pub config: AppConfig,
pub config: AppSettings,
}
pub struct RefreshDeps {
pub refresh_session: Arc<dyn RefreshSessionRepository>,
pub auth: Arc<dyn AuthService>,
pub config: AppConfig,
pub config: AppSettings,
}
pub struct RegisterAndLoginDeps {
@@ -29,7 +29,7 @@ pub struct RegisterAndLoginDeps {
pub password_hasher: Arc<dyn PasswordHasher>,
pub auth: Arc<dyn AuthService>,
pub refresh_session: Arc<dyn RefreshSessionRepository>,
pub config: AppConfig,
pub config: AppSettings,
}
pub struct LogoutDeps {