From 72769037330859101891294b8699a36283292347 Mon Sep 17 00:00:00 2001 From: H3ALY Date: Fri, 24 Oct 2025 08:35:39 +0100 Subject: [PATCH] refactor(config): move Config struct from business layer to platform/config Moved the Config struct (previously in internal/models/config.go) into internal/platform/config/types.go to align with clean architecture principles. This change decouples runtime/infrastructure configuration from domain models: - Configuration is an application/platform concern, not part of the business domain. - Prevents potential circular imports between models and platform packages. - Simplifies future integration with platform components (SCS sessions, CSRF, DB). No functional changes to configuration loading structure and JSON schema remain the same; only the package location and imports were updated. --- internal/{models/config.go => platform/config/types.go} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename internal/{models/config.go => platform/config/types.go} (98%) diff --git a/internal/models/config.go b/internal/platform/config/types.go similarity index 98% rename from internal/models/config.go rename to internal/platform/config/types.go index be2a5a2..e50f8ce 100644 --- a/internal/models/config.go +++ b/internal/platform/config/types.go @@ -1,4 +1,4 @@ -package models +package config type Config struct { CSRF struct {