Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dúvida sobre a estrutura do useCases #3

Open
jvnsantos opened this issue Aug 29, 2022 · 0 comments
Open

Dúvida sobre a estrutura do useCases #3

jvnsantos opened this issue Aug 29, 2022 · 0 comments

Comments

@jvnsantos
Copy link

jvnsantos commented Aug 29, 2022

No projeto, foi criado a estrutura useCases/CreateUser mas caso eu queira implementar outra feature, eu crio da mesma forma?

useCases/CreateUser/...
useCases/DeleteUser/...
useCases/ModifyUser/...

Caso eu queira criar uma entidade diferente, por exemplo um Post de comentário, iria ficar ambos dentro do mesmo diretório.

useCases/CreatePost/...
useCases/CreateUser/...

Seria ideal subir um nível para abstrair cada "Entidade"?

useCases/**Post**/CreatePost/...
useCases/**Post**/DeletePost/...
useCases/**User**/CreateUser/...
useCases/**User**/DeleteUser/...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant