Architecture
Clean Architecture
Total desacoplamento das regras de negócios das camadas de interface:
Em nossa arquitetura:
flowchart LR
subgraph Controller
direction TB
Interface:::adapter
RecordIn:::adapter
RecordOut:::adapter
end
subgraph Case
direction TB
Service:::case
DTO:::case
end
subgraph Entity
direction TB
Repository:::entity
Table:::entity
end
Interface --> RecordIn
Interface --> RecordOut
Controller <--> parser["Parser"] <--> Case
Service --> DTO
Case <--> mapper["Mapper"] <--> Entity
Repository --> Table
classDef adapter fill:#6f6
classDef case fill:#f99
classDef entity fill:#ff9