Skip to content

회원 기능 구현 #4

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

Closed
junha-ahn opened this issue Jul 1, 2023 · 1 comment · Fixed by #30 or #76
Closed

회원 기능 구현 #4

junha-ahn opened this issue Jul 1, 2023 · 1 comment · Fixed by #30 or #76
Assignees
Labels
enhancement New feature or request

Comments

@junha-ahn
Copy link
Member

junha-ahn commented Jul 1, 2023

Description

회원에 관련된 기능을 구현해주세요

To do

  • 회원은 username, password, name 정보를 가집니다.
  • 회원가입
  • 로그인 (JWT, Local-Session 중 하나 선택)
    • 향후: JWT, Session등 다양한 로그인을 고려한 인터페이스/클래스 설계
  • 비밀번호 Hasing 후 Insert
  • 실제 DB를 사용하지 않아도 됩니다. (Mockup test only)

Test Checklist

@junha-ahn junha-ahn added the enhancement New feature or request label Jul 1, 2023
@junha-ahn junha-ahn moved this to Todo in Kanban backend Jul 1, 2023
@minjun3021
Copy link
Collaborator

minjun3021 commented Jul 1, 2023

Test Checklist

controller

  • contoller.register(...)는 userService.create()를 호출해야 한다.
  • controller.register(...)가 정상적으로 호출되면 200 success를 반환한다.
  • controller.register(...)에 빈값을 넣으면 400 error를 반환한다.

service

  • service.create(...)는 repository.findByIdOrNull()을 호출한다.
  • repository.findByIdOrNull()가 null을 반환하면 repository.save(user)를 실행하고
  • repository.findByIdOrNull()가 유저데이터를 반환하면 controller에 {success=false}를 반환한다.

repository

  • repository.findByIdOrNull()는 id에 해당하는 유저를 select하고 없으면 null을 반환한다.

@junha-ahn junha-ahn moved this from Todo to In Progress in Kanban backend Jul 12, 2023
@junha-ahn junha-ahn linked a pull request Jul 17, 2023 that will close this issue
@junha-ahn junha-ahn mentioned this issue Jul 23, 2023
3 tasks
@github-project-automation github-project-automation bot moved this from In Progress to Done in Kanban backend Aug 1, 2023
@junha-ahn junha-ahn linked a pull request Sep 11, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
2 participants