-
Notifications
You must be signed in to change notification settings - Fork 0
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 BE 유저 참여 API 구현 #65
Conversation
} | ||
|
||
async isParticipaite(recruitId: number, userId: number): Promise<boolean> { | ||
return this.userRecruitRepository.isParticipate(recruitId, userId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오타 : isParticipate
근데 네이밍자체는 isParticipating 이 좀 나을수도 있을꺼같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 수정하겠습니다!
return await this.findOneBy({ id: recruitId }); | ||
} | ||
|
||
async getMaxPpl(recruitId: number) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getMaxPeople 의 줄임말같은데 굳이 줄일 필요가 있을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
db에 maxPpl로 저장되어있어서 통일성을 위해 Ppl로 했습니다
}); | ||
} | ||
|
||
async findOneById(recruitId: number): Promise<Recruit | undefined> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
find"One"ById 에서 "one" 이 어떤거인지 잘 모르겠어요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recruit입니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Feature
사용자가 러닝 모집에 참여하기 위한 API를 구현한다.
사용자가 러닝 모집에 참여하도록 하기 위함
과정
결과 (스크린샷 등)
유저 참여에 성공한 경우
모집 글이 없거나 삭제된 경우
모집 글 게시자와 참여하려는 유저가 동일한 경우
이미 해당 모집에 참여한 경우
모집이 완료된 경우
관련 issue 번호 (링크)
#60
테스트 방법
POST localhost:4000/recruit/join
Commit