-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 썸네일 변환 기능을 미디어 도메인에 통합 - 이미지, 비디오 포맷 검증 규칙 추가 - 외부 도메인에서 요구하는 조회 메소드 추가 - 회원 및 일거리 엔티티와 1:1 연결 설정 Related to: #95
- Loading branch information
1 parent
8953b82
commit f44bd5c
Showing
11 changed files
with
188 additions
and
140 deletions.
There are no files selected for viewing
This file contains 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 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 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
src/main/java/com/prgrms2/java/bitta/media/entity/MediaCategory.java
This file contains 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,5 +1,5 @@ | ||
package com.prgrms2.java.bitta.media.entity; | ||
|
||
public enum MediaCategory { | ||
IMAGE, VIDEO, PROFILE | ||
IMAGE, VIDEO | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/prgrms2/java/bitta/media/exception/MediaException.java
This file contains 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,18 @@ | ||
package com.prgrms2.java.bitta.media.exception; | ||
|
||
public enum MediaException { | ||
BAD_REQUEST(400, "올바르지 않은 접근 경로입니다."), | ||
NOT_FOUND(404, "해당 파일은 존재하지 않습니다."), | ||
INTERNAL_ERROR(500, "파일 처리에 실패했습니다."), | ||
INVALID_FORMAT(500, "올바르지 않은 파일 포맷입니다."); | ||
|
||
private MediaTaskException mediaTaskException; | ||
|
||
MediaException(int code, String message) { | ||
mediaTaskException = new MediaTaskException(code, message); | ||
} | ||
|
||
public MediaTaskException get() { | ||
return mediaTaskException; | ||
} | ||
} |
17 changes: 0 additions & 17 deletions
17
src/main/java/com/prgrms2/java/bitta/media/exception/MediaFileException.java
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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.