[REFACTOR] Better DDD / No direct implementation at interface layer
Overview / 概要
Current server has direct implementation at interfaces. Atleast, it is BAD practice at DDD. We should move them to application/service.
Looks like current folder structures are weird at DDD architecture.
Usecases should be called "service" at DDD architecture.
(Clearn architecture calls current usecases as usecases, but DDD calls them service)
This server doesn't PERFECT ddd but changing them from now is too hard work and the gain is low. Keep the folder names as is. Just separates the interfaces for now.
Details / 詳細
-
Rename current usecases as services -
Rename curent services as usecase -
Remove direct usecase calling from interfaces layer. Make the all things called via application/service. - Accept the duplication. The duplication will makes easy to maintain.
Edited by Dosugamea