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

[refactor] validate 메서드를 assert_* 표현으로 리팩토링 #936

Closed
kimminkyeu opened this issue Jan 8, 2025 · 0 comments
Closed
Assignees
Labels
backend 백엔드 관련

Comments

@kimminkyeu
Copy link
Collaborator

kimminkyeu commented Jan 8, 2025

예시 코드

if (Objects.nonNull(command.parentFolderId())) {
	assertUserIsFolderOwner(command.userId(), command.parentFolderId());
	assertParentFolderIsNotRoot(command.parentFolderId());
}
assertUserIsPickOwner(command.userId(), command.id());
assertUserIsTagOwner(command.userId(), command.tagIdOrderedList());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend 백엔드 관련
Projects
None yet
Development

No branches or pull requests

1 participant