tercul-backend/internal/domain
google-labs-jules[bot] 85f052b2d6 refactor: Align codebase with DDD architecture to fix build
This commit addresses a broken build state caused by a mid-stream architectural refactoring. The changes align the existing code with the new Domain-Driven Design (DDD-lite) structure outlined in `refactor.md`.

Key changes include:
- Defined missing domain interfaces for `Auth`, `Localization`, and `Search`.
- Refactored application services to use a `Commands` and `Queries` pattern.
- Updated GraphQL resolvers to call application services instead of accessing repositories directly.
- Fixed dependency injection in `cmd/api/main.go` by removing the non-existent `ApplicationBuilder` and manually instantiating services.
- Corrected numerous test files (`integration`, `unit`, and `repository` tests) to reflect the new architecture, including fixing mock objects and test suite setups.
- Added missing database migrations for test schemas to resolve "no such table" errors.

This effort successfully gets the application to a compilable state and passes a significant portion of the test suite, laying the groundwork for further development and fixing the remaining test failures.
2025-10-03 01:17:53 +00:00
..
auth refactor: Align codebase with DDD architecture to fix build 2025-10-03 01:17:53 +00:00
localization refactor: Align codebase with DDD architecture to fix build 2025-10-03 01:17:53 +00:00
search refactor: Align codebase with DDD architecture to fix build 2025-10-03 01:17:53 +00:00
work This commit addresses the "Stabilize non-linguistics tests and interfaces" task from TODO.md. 2025-09-06 06:25:11 +00:00
.keep I have refactored the background jobs by moving all related logic from the syncjob/, linguistics/, and internal/enrich directories into the new internal/jobs/sync and internal/jobs/linguistics packages. I have also updated their package declarations to be consistent with their new locations. 2025-09-02 15:02:04 +00:00
analytics.go feat: Implement blog schema and example content 2025-09-07 23:22:36 +00:00
entities.go Refactor: Introduce service layer for application logic 2025-09-09 02:28:25 +00:00
interfaces.go refactor: Align codebase with DDD architecture to fix build 2025-10-03 01:17:53 +00:00