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

[develop → main] feat: social sign in, token authentication, trainer list, member management, community postlist, membership payment, consultant post #26

Open
wants to merge 54 commits into
base: main
Choose a base branch
from

Conversation

suyeongs
Copy link
Contributor

@suyeongs suyeongs commented Sep 16, 2023

[GypPT] List of feature implementations to date (230917)

  • social sign in (⊃ sign up)
  • token authentication (+ classification by user type, grade)
  • trainer list
  • member management
  • community post list
  • membership payment (using point)
  • creating consultant post

@suyeongs suyeongs self-assigned this Sep 16, 2023
@suyeongs suyeongs changed the title feat: social sign in, token authentication, trainer list, member management, community postlist, membership payment [develop → main] feat: social sign in, token authentication, trainer list, member management, community postlist, membership payment Sep 16, 2023
@suyeongs suyeongs changed the title [develop → main] feat: social sign in, token authentication, trainer list, member management, community postlist, membership payment [develop → main] feat: social sign in, token authentication, trainer list, member management, community postlist, membership payment, consultant post Sep 17, 2023
Copy link

@kyeongraekim kyeongraekim left a comment

Choose a reason for hiding this comment

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

아래 간단한 내용들 한 번 수정해주세요!

.env.sample Outdated Show resolved Hide resolved
const getManagement = catchAsync(async (req, res) => {
const { userId, weekday } = req.query;
const membership = await managementService.getManagement(userId, weekday);
res.json(membership);

Choose a reason for hiding this comment

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

  • 해당 membership에 대한 리턴에는 상태코드가 적혀있지 않네요! 상태코드를 함께 꼭 리턴시 함께 줄 수 있도록 수정하여주세요!

api/controllers/trainerController.js Outdated Show resolved Hide resolved
api/controllers/userController.js Outdated Show resolved Hide resolved
api/controllers/userController.js Outdated Show resolved Hide resolved
api/controllers/userController.js Outdated Show resolved Hide resolved
api/routes/userRouter.js Outdated Show resolved Hide resolved
api/services/userService.js Outdated Show resolved Hide resolved
userRouter.post('/kakao-sign-in', userController.kakaoSignIn);
userRouter.post('/kakao-sign-up', userController.kakaoSignUp);
userRouter.post('/duplicate-nickname', userController.checkDuplicateNickname);
userRouter.get('/mypage', loginRequired, userController.getMyPage);

Choose a reason for hiding this comment

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

  • RESTful 한 엔드포인트 설계와, 레이어드 패턴 설계 시 mypage와 같은 페이지적 특성을 드러내는 요소로 작성하지 않습니다.
  • 즉 유저의 정보를 드러내는 내용이라면 뒤 데이터 자원을 명시하는 영역의 문구가 users/information 정도로 처리될 수 있게 수정해주세요.

Choose a reason for hiding this comment

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

  • 해당 내용에 맞게 전체 레이어드패턴에 녹여져있는 myPage라는 워딩을 일괄 수정하여주세요!

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

Successfully merging this pull request may close these issues.

5 participants