Edit requests of Clean ArchitectureでAPI Serverを構築してみる
@convto
2017-12-13
Accepted
`usecase/user_repository.go` で定義したinterfaceをそのまま利用すると、`usecase/user_interactor.go` の `Add` 関数内の `err = interactor.UserRepository.Store(u)` 実行時にインターフェースでの定義と矛盾が発生するため、 `usecase/user_repository.go` のインターフェース定義では `Store` の戻り値から `int` を外すべきだと思います
Please check the preview of this article
We released Markdown parser changes on February 24, 2022. There may be some unexpected appearance changes in this update, because this article was posted before the changes.
Please don't forget to check the preview before updating your article.
For more information on the changes, please read this article.