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

feat; 멤버 가입(등록) API 작성하기 #29

Merged
merged 4 commits into from
Jul 1, 2024
Merged

Conversation

yaeoni
Copy link
Collaborator

@yaeoni yaeoni commented Jun 29, 2024

  • 🔀 PR 제목의 형식을 잘 작성했나요? e.g. [add] pr template
  • 🧹 불필요한 코드는 제거했나요?

작업 내용

  • 멤버 가입 API 작성해요

비고 (첨부자료)

Comment on lines +11 to +21
interface MemberUseCase {
data class CreateCommand(
val fullName: String,
val profileImageId: ImageId?,
val platform: MemberPlatform,
val ordinal: Int,
val gender: MemberGender,
)

fun create(command: CreateCommand): MemberId
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

유즈케이스랑 서비스랑 메소드랑 코맨드 모델이 아예 똑같아서,, 유즈케이스라는 레이어가 하나 더 있는게 불필요하게 느껴지더라구요?

그래서 바로 컨트롤러에서 서비스 호출해도 되도록하면 어떨지 여러분들 의견도 궁금합니당

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아까 저도 이것과 관련하여 얘기를 해봤는데, API와 통신하는 것 UseCase만을 사용하도록 했던 것 같아요~~

@yaeoni yaeoni force-pushed the yaeoni/member-create branch from 3dd2002 to 5bf42ea Compare June 29, 2024 19:48
Copy link
Member

@xonmin xonmin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

먼저 merge 하고 추후 수정사항은 후속 PR 에서 진행합니다.

@xonmin xonmin merged commit 2a2e497 into master Jul 1, 2024
1 check passed
@xonmin xonmin deleted the yaeoni/member-create branch July 1, 2024 13:47
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

Successfully merging this pull request may close these issues.

3 participants