-
Notifications
You must be signed in to change notification settings - Fork 2
215 feat 제휴업체 기능 개발 #218
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
Merged
The head ref may contain hidden characters: "215-feat-\uC81C\uD734\uC5C5\uCCB4-\uAE30\uB2A5-\uAC1C\uBC1C"
Merged
215 feat 제휴업체 기능 개발 #218
Changes from 29 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
1438e42
Merge pull request #197 from CodIN-INU/develop
X1n9fU a5d7c59
Merge pull request #198 from CodIN-INU/develop
X1n9fU 9a188ff
Merge pull request #199 from CodIN-INU/develop
X1n9fU a8347f4
Merge pull request #200 from CodIN-INU/develop
X1n9fU 7470b29
Merge pull request #201 from CodIN-INU/develop
X1n9fU 536e1b9
Merge pull request #205 from CodIN-INU/develop
X1n9fU 6ce9683
chore : 허용된 email 추가
X1n9fU d9e33b8
refactor: Email 도메인 리팩토링
doma17 7c9007e
remove: EmailAuthService, EmailSendService 제거
doma17 a252670
test: Email Service 테스트 추가
doma17 878ffa1
refactor: #207 수정사항 적용
doma17 6ad71a1
refactor: #207 수정사항 적용 2
doma17 e2db74e
fixup! refactor: #207 수정사항 적용 2
doma17 63ad8ec
refactor: #207 수정사항 적용 3
doma17 03b6114
test: #207 수정사항 적용 5
doma17 5a0de40
test: #207 수정사항 적용 6
doma17 7cb6206
refactor : Info package 내부 구조 평탄화
X1n9fU a78eaa4
feat : Partner(제휴 업체) Entity 설계 및 Read 기능 구현
X1n9fU 1d54470
fix : GlobalException, ErrorCode interface 설정. ChatException 제작
X1n9fU 456f8bd
fix : 불필요한 Getter 삭제 및 GlobalExceptionHandler에 ChattingException 추가
X1n9fU e4635d0
style : 코드 스타일 일치를 위한 공백 제거
X1n9fU 4e665a9
refactor : InfoException, InfoErrorCode 생성 및 GlobalExceptionHandler 에 추가
X1n9fU 987cd1d
feat : Partner create 로직 제작
X1n9fU 90795f3
fix : Scheme 작성 및 Department의 JSON 매핑 로직 추가
X1n9fU 9ba2370
feat : 제휴업체 삭제 로직 추가 및 생성 시 이미지 업로드 진행
X1n9fU f1f851c
test : 제휴업체 기능 반환, 생성, 삭제 로직 테스트 코드 작성
X1n9fU a55c3c1
fix : JsonCreator name과 value 모두 조회하도록 수정, JsonValue에서 description이 아…
X1n9fU 84e61e0
feat : 제휴업체 위치 location 필드 추가
X1n9fU e6c1c49
fix : 이미지가 없어도 생성 가능하도록 로직 수정
X1n9fU 11d2eb9
refactor : 코드 인라인화, 불필요한 트랜잭션 삭제
X1n9fU 87db5f8
refactor : 잠시 주석처리, chat 기능 추합 후 주석 해제
X1n9fU 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
8 changes: 8 additions & 0 deletions
8
src/main/java/inu/codin/codin/common/exception/GlobalErrorCode.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,8 @@ | ||
| package inu.codin.codin.common.exception; | ||
|
|
||
| import org.springframework.http.HttpStatus; | ||
|
|
||
| public interface GlobalErrorCode { | ||
| HttpStatus httpStatus(); | ||
| String message(); | ||
| } |
13 changes: 13 additions & 0 deletions
13
src/main/java/inu/codin/codin/common/exception/GlobalException.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,13 @@ | ||
| package inu.codin.codin.common.exception; | ||
|
|
||
| import lombok.Getter; | ||
|
|
||
| @Getter | ||
| public class GlobalException extends RuntimeException { | ||
|
|
||
| private final GlobalErrorCode errorCode; | ||
| public GlobalException(GlobalErrorCode errorCode){ | ||
| super(errorCode.message()); | ||
| this.errorCode = 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
26 changes: 26 additions & 0 deletions
26
src/main/java/inu/codin/codin/domain/chat/exception/ChatRoomErrorCode.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,26 @@ | ||
| package inu.codin.codin.domain.chat.exception; | ||
|
|
||
| import inu.codin.codin.common.exception.GlobalErrorCode; | ||
| import lombok.RequiredArgsConstructor; | ||
| import org.springframework.http.HttpStatus; | ||
|
|
||
| @RequiredArgsConstructor | ||
| public enum ChatRoomErrorCode implements GlobalErrorCode { | ||
| CHATROOM_CREATE_MYSELF(HttpStatus.BAD_REQUEST, "자기 자신과는 채팅방을 생성할 수 없습니다."), | ||
| CHATROOM_EXISTED(HttpStatus.valueOf(303), "해당 reference에서 시작된 채팅방이 존재합니다."), | ||
| CHATROOM_NOT_FOUND(HttpStatus.NOT_FOUND, "채팅방을 찾을 수 없습니다."), | ||
| PARTICIPANTS_NOT_FOUND(HttpStatus.NOT_FOUND, "채팅방 내의 참여자를 찾을 수 없습니다."); | ||
|
|
||
| private final HttpStatus httpStatus; | ||
| private final String message; | ||
|
|
||
| @Override | ||
| public HttpStatus httpStatus() { | ||
| return httpStatus; | ||
| } | ||
|
|
||
| @Override | ||
| public String message() { | ||
| return message; | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
src/main/java/inu/codin/codin/domain/chat/exception/ChatRoomException.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,14 @@ | ||
| package inu.codin.codin.domain.chat.exception; | ||
|
|
||
| import inu.codin.codin.common.exception.GlobalException; | ||
| import lombok.Getter; | ||
|
|
||
| @Getter | ||
| public class ChatRoomException extends GlobalException { | ||
|
|
||
| private final ChatRoomErrorCode errorCode; | ||
| public ChatRoomException(ChatRoomErrorCode errorCode) { | ||
| super(errorCode); | ||
| this.errorCode = errorCode; | ||
| } | ||
| } |
26 changes: 26 additions & 0 deletions
26
src/main/java/inu/codin/codin/domain/chat/exception/ChattingErrorCode.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,26 @@ | ||
| package inu.codin.codin.domain.chat.exception; | ||
|
|
||
| import inu.codin.codin.common.exception.GlobalErrorCode; | ||
| import lombok.RequiredArgsConstructor; | ||
| import org.springframework.http.HttpStatus; | ||
|
|
||
| @RequiredArgsConstructor | ||
| public enum ChattingErrorCode implements GlobalErrorCode { | ||
|
|
||
| CHATTING_USER_NOT_FOUND(HttpStatus.UNAUTHORIZED, "헤더에서 유저(email)을 찾을 수 없습니다."), | ||
| CHATTING_ID_NOT_FOUND(HttpStatus.NOT_FOUND, "헤더에서 채팅방 _id를 찾을 수 없습니다."); | ||
|
|
||
| private final HttpStatus httpStatus; | ||
|
|
||
| private final String message; | ||
|
|
||
| @Override | ||
| public HttpStatus httpStatus() { | ||
| return httpStatus; | ||
| } | ||
|
|
||
| @Override | ||
| public String message() { | ||
| return message; | ||
| } | ||
| } |
16 changes: 16 additions & 0 deletions
16
src/main/java/inu/codin/codin/domain/chat/exception/ChattingException.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,16 @@ | ||
| package inu.codin.codin.domain.chat.exception; | ||
|
|
||
| import inu.codin.codin.common.exception.GlobalException; | ||
| import lombok.Getter; | ||
|
|
||
| @Getter | ||
| public class ChattingException extends GlobalException { | ||
|
|
||
| private final ChattingErrorCode errorCode; | ||
| private final String sessionId; | ||
| public ChattingException(ChattingErrorCode errorCode, String sessionId) { | ||
| super(errorCode); | ||
| this.errorCode = errorCode; | ||
| this.sessionId = sessionId; | ||
| } | ||
| } |
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/inu/codin/codin/domain/email/exception/EmailPasswordResetFailException.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 inu.codin.codin.domain.email.exception; | ||
|
|
||
| public class EmailPasswordResetFailException extends RuntimeException { | ||
| public EmailPasswordResetFailException(String message) { | ||
| super(message); | ||
| } | ||
| } |
7 changes: 7 additions & 0 deletions
7
src/main/java/inu/codin/codin/domain/email/exception/EmailTemplateFailException.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 inu.codin.codin.domain.email.exception; | ||
|
|
||
| public class EmailTemplateFailException extends RuntimeException { | ||
| public EmailTemplateFailException(String message) { | ||
| super(message); | ||
| } | ||
| } |
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
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.
Uh oh!
There was an error while loading. Please reload this page.