-
Notifications
You must be signed in to change notification settings - Fork 0
[Sangwan] week08 미션 #88
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
Open
wantkdd
wants to merge
17
commits into
Sangwan
Choose a base branch
from
Sangwan-Week08
base: Sangwan
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
7728d35
fix: 별점순 리뷰 복합 커서 적용
wantkdd ff7e7ce
fix: 진행중 미션 페이지 정렬 고정
wantkdd 1e12455
docs: Validated 중첩 검증 설명 보완
wantkdd cbd6796
refactor: 문의 도메인 Inquire로 통일
wantkdd c7fcdd4
fix: 미션 상태 enum 누락 보완
wantkdd e3ed0d8
build: Spring Security 의존성 추가
wantkdd 010a02e
feat: 회원가입 요청 인증 필드 추가
wantkdd dd95b56
feat: 이메일 기반 회원 조회 추가
wantkdd ff7c810
feat: BCrypt 회원가입 로직 구현
wantkdd e8488f6
feat: Security 사용자 조회 구현
wantkdd 0b1822e
feat: 폼 로그인 보안 설정 추가
wantkdd 630c970
fix: 페이징 요청 파라미터 검증 추가
wantkdd ade261f
feat: Week08 키워드 추가
wantkdd a7dcff4
chore: bootRun에서 env 파일을 읽도록 설정
wantkdd 5ebae59
feat: 회원가입 요청에 약관과 선호 음식 추가
wantkdd 4cba1f1
feat: 회원가입 연관 데이터 조회와 저장 Repository 추가
wantkdd ccee0d5
feat: 회원가입 시 약관과 선호 음식을 저장
wantkdd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
Sangwan/src/main/java/com/example/umc10th/domain/inquire/controller/InquireController.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| package com.example.umc10th.domain.inquire.controller; | ||
|
|
||
| public class InquireController { | ||
| } |
4 changes: 4 additions & 0 deletions
4
Sangwan/src/main/java/com/example/umc10th/domain/inquire/converter/InquireConverter.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| package com.example.umc10th.domain.inquire.converter; | ||
|
|
||
| public class InquireConverter { | ||
| } |
4 changes: 4 additions & 0 deletions
4
Sangwan/src/main/java/com/example/umc10th/domain/inquire/dto/InquireReqDTO.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| package com.example.umc10th.domain.inquire.dto; | ||
|
|
||
| public class InquireReqDTO { | ||
| } |
4 changes: 4 additions & 0 deletions
4
Sangwan/src/main/java/com/example/umc10th/domain/inquire/dto/InquireResDTO.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| package com.example.umc10th.domain.inquire.dto; | ||
|
|
||
| public class InquireResDTO { | ||
| } |
6 changes: 3 additions & 3 deletions
6
...le/umc10th/domain/qna/entity/Inquire.java → ...mc10th/domain/inquire/entity/Inquire.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...10th/domain/qna/entity/InquireAnswer.java → .../domain/inquire/entity/InquireAnswer.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...c10th/domain/qna/entity/InquireImage.java → ...h/domain/inquire/entity/InquireImage.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...c10th/domain/qna/enums/InquireStatus.java → ...h/domain/inquire/enums/InquireStatus.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
Sangwan/src/main/java/com/example/umc10th/domain/inquire/enums/InquireType.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| package com.example.umc10th.domain.inquire.enums; | ||
|
|
||
| public enum InquireType { | ||
| SERVICE, STORE, PAYMENT, ACCOUNT, ETC | ||
| } |
6 changes: 3 additions & 3 deletions
6
...th/domain/qna/exception/QnaException.java → ...n/inquire/exception/InquireException.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| package com.example.umc10th.domain.qna.exception; | ||
| package com.example.umc10th.domain.inquire.exception; | ||
|
|
||
| import com.example.umc10th.global.apiPayload.code.BaseErrorCode; | ||
| import com.example.umc10th.global.apiPayload.exception.ProjectException; | ||
|
|
||
| public class QnaException extends ProjectException { | ||
| public QnaException(BaseErrorCode errorCode) { | ||
| public class InquireException extends ProjectException { | ||
| public InquireException(BaseErrorCode errorCode) { | ||
| super(errorCode); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
Sangwan/src/main/java/com/example/umc10th/domain/inquire/repository/InquireRepository.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| package com.example.umc10th.domain.inquire.repository; | ||
|
|
||
| import com.example.umc10th.domain.inquire.entity.Inquire; | ||
| import org.springframework.data.jpa.repository.JpaRepository; | ||
|
|
||
| public interface InquireRepository extends JpaRepository<Inquire, Long> { | ||
| } |
4 changes: 4 additions & 0 deletions
4
Sangwan/src/main/java/com/example/umc10th/domain/inquire/service/InquireService.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| package com.example.umc10th.domain.inquire.service; | ||
|
|
||
| public class InquireService { | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
Sangwan/src/main/java/com/example/umc10th/domain/member/converter/MemberConverter.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...src/main/java/com/example/umc10th/domain/member/repository/MemberAgreementRepository.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| package com.example.umc10th.domain.member.repository; | ||
|
|
||
| import com.example.umc10th.domain.member.entity.mapping.MemberAgreement; | ||
| import org.springframework.data.jpa.repository.JpaRepository; | ||
|
|
||
| public interface MemberAgreementRepository extends JpaRepository<MemberAgreement, Long> { | ||
| } |
7 changes: 7 additions & 0 deletions
7
.../main/java/com/example/umc10th/domain/member/repository/MemberFoodCategoryRepository.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| package com.example.umc10th.domain.member.repository; | ||
|
|
||
| import com.example.umc10th.domain.member.entity.mapping.MemberFoodCategory; | ||
| import org.springframework.data.jpa.repository.JpaRepository; | ||
|
|
||
| public interface MemberFoodCategoryRepository extends JpaRepository<MemberFoodCategory, Long> { | ||
| } |
6 changes: 5 additions & 1 deletion
6
Sangwan/src/main/java/com/example/umc10th/domain/member/repository/MemberRepository.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,13 @@ | ||
| package com.example.umc10th.domain.member.repository; | ||
|
|
||
| import com.example.umc10th.domain.member.dto.MemberReqDTO; | ||
| import com.example.umc10th.domain.member.entity.Member; | ||
| import org.springframework.data.jpa.repository.JpaRepository; | ||
|
|
||
| import java.util.Optional; | ||
|
|
||
| public interface MemberRepository extends JpaRepository<Member,Long> { | ||
|
|
||
| boolean existsByEmail(String email); | ||
|
|
||
| Optional<Member> findByEmail(String email); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Security 설정과
AuthMember가 추가되었으므로/me성격의 API는 요청 파라미터의memberId보다@AuthenticationPrincipal AuthMember에서 현재 로그인한 회원 ID를 가져오는 방향을 권장합니다. 이렇게 하면 클라이언트가 다른 회원 ID를 전달하는 흐름을 막고, 인증/인가 책임이 Controller 경계에서 더 명확해집니다.