- https://github.com/Chukapoka/server/pull/28
- user
- controller
- emailCheck
- 회원가입 / 로그인 대상 여부 확인
- email, emailType(DEFAULT, KAKAO, GOOGLE)
- joinAndLogin
- join, login
- email, emailType, password, actionType(JOIN, LOGIN)
- join
- Join And Login
- 유저 디비 데이터 추가
- 유저 디비에 따라 토큰에 활용될
*Authentication
생성*
- 생성한
Authentication
에 따라 토큰 티비에 데이터 추가
- UserResponseDto의 userId 삭제
- authNumber
- 인증번호 요청
- email content form 수정할 필요 있을 듯
- 만료시간이 5분이라는 것도 알릴 필요 있음
- reissue
- 토큰 재발급
- SecurityContextHolder에서 userId 가져온 후, 재 발급
- 재발급된 acceessToken은 클라이언트에서 새로 저장될 것을 전제로 함
- logout
- 로그아웃
- 발급된 토큰을 삭제하는 것을 로그아웃으로 취급
- tree
- createTree
- 트리생성
- response DTO에선 updateBy는 모르도록 userId와 동일한 의미
- treeBgColor, groundColor, treeTopColor, treeItemColor, treeBottomColor의 enum화,
TreeModifyRequestDto
, TreeCreateRequestDto
- treeDetail
- GET, 열람용이므로, 다른 계정의 트리를 보는 경우도 있기에 userId(현재 로그인한 유저의 userId)와 일치시킬 필요없음
- isMyTree 항목추가
- 로그인한 유저의 트리인지 여부 확인
- 로그인한 유저의 트리이면 모든 트리 아이템 열람 가능
- treeItem는 content가 보이지 않도록 해야함
- modify, delete
- treeList
-
treeitem