22 lines
792 B
Plaintext
22 lines
792 B
Plaintext
---
|
|
description:
|
|
globs:
|
|
alwaysApply: false
|
|
---
|
|
# Internal Architecture
|
|
|
|
The internal directory contains the core business logic of the application:
|
|
|
|
- [internal/model/](mdc:internal/model): Data models and domain entities
|
|
- [internal/service/](mdc:internal/service): Business logic services
|
|
- [internal/storage/](mdc:internal/storage): Data persistence layer
|
|
- [internal/storage/dao/](mdc:internal/storage/dao): Database access objects
|
|
- [internal/storage/cache/](mdc:internal/storage/cache): Redis cache implementation
|
|
|
|
The application follows a layered architecture with clear separation between:
|
|
1. HTTP handlers (in api/)
|
|
2. Business logic (in internal/service/)
|
|
3. Data access (in internal/storage/)
|
|
|
|
This design promotes maintainability and testability by decoupling components.
|