디렉토리 구조의 종류

계층형

도메인형

정답은 없다..! 모듈적으로 분리할 수 없기에 계층형을 기반으로 적절히 도메인을 분리해 직관적인 구조를 가져가려 노력했다.

최종 디렉토리 구조

.
└── ./hey
    ├── ./hey/auth
    │   ├── ./hey/auth/annotation
    │   ├── ./hey/auth/config
    │   ├── ./hey/auth/controller
    │   ├── ./hey/auth/domain
    │   ├── ./hey/auth/dto
    │   │   ├── ./hey/auth/dto/request
    │   │   └── ./hey/auth/dto/response
    │   ├── ./hey/auth/exception
    │   ├── ./hey/auth/repository
    │   ├── ./hey/auth/service
    │   └── ./hey/auth/web
    │       ├── ./hey/auth/web/interceptor
    │       └── ./hey/auth/web/resolver
    ├── ./hey/config
    ├── ./hey/controller
    │   ├── ./hey/controller/archiving
    │   ├── ./hey/controller/car
    │   └── ./hey/controller/myChiving
    ├── ./hey/domain
    │   ├── ./hey/domain/archiving
    │   ├── ./hey/domain/car
    │   └── ./hey/domain/myChiving
    ├── ./hey/dto
    │   ├── ./hey/dto/archiving
    │   │   ├── ./hey/dto/archiving/request
    │   │   └── ./hey/dto/archiving/response
    │   ├── ./hey/dto/car
    │   │   ├── ./hey/dto/car/request
    │   │   └── ./hey/dto/car/response
    │   ├── ./hey/dto/global
    │   │   ├── ./hey/dto/global/request
    │   │   └── ./hey/dto/global/response
    │   └── ./hey/dto/myChiving
    │       ├── ./hey/dto/myChiving/request
    │       └── ./hey/dto/myChiving/response
    ├── ./hey/exception
    │   └── ./hey/exception/myChiving
    ├── ./hey/repository
    │   ├── ./hey/repository/archiving
    │   ├── ./hey/repository/car
    │   └── ./hey/repository/myChiving
    └── ./hey/service
        ├── ./hey/service/archiving
        ├── ./hey/service/car
        └── ./hey/service/myChiving