9 lines
782 B
Markdown
9 lines
782 B
Markdown
# Package Responsibility and Forbidden Dependencies
|
|
|
|
| Package | Responsibility | Forbidden Dependencies |
|
|
|------------------|------------------------------------------------------|--------------------------|
|
|
| controller | Handle user requests, validate inputs, and respond | domain |
|
|
| service | Contain business logic and orchestration | repository |
|
|
| repository | Manage data access and persistence | service |
|
|
| domain | Define core business models and rules | integration |
|
|
| integration | Interface with external systems (e.g. payment gateways) | domain, service |
|