marklin-latte / Clean-Architecture-Implement-Study

3 stars 1 forks source link

第三章: 六角架構的 infra 是要寫在那呢 ? #5

Open marklin-latte opened 2 years ago

marklin-latte commented 2 years ago

書中的範別如下,那 db 的 connection 實作會是寫在 account 外面還是裡面呢 ? 目前我自已的實作是外面會有一個 『 global module 』概念的東西,裡面有 『 databse 』處理的相關在那,但不確定對與否

- buckpal
    - account
        - adapter
            - in
                - web
                    - accountController
            - out
                - persistence
                    - accountPersistenceAdapter
                    - springDataAccountRepository
        - domain
            - Account
            - Activity
        - application
            - SendMoneyService
            - port
                - in
                    - SendMoneyUseCase
                - out
                    - LoadAccountPort
                    - UpdateAccountstatePort
cwhsiaoo commented 2 years ago

這邊 (Hex.) 和整個 Clean Arch. 都還在消化中,相關問題更理解之後再回頭來加入討論 🙈