-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Refactor/#53/로컬 회원가입, 로컬 로그인, 스페이스 생성 api 점검
- Loading branch information
Showing
17 changed files
with
117 additions
and
101 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
12 changes: 0 additions & 12 deletions
12
src/main/java/space/space_spring/dto/space/PostSpaceCreateResponse.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
11 changes: 0 additions & 11 deletions
11
src/main/java/space/space_spring/dto/user/PostUserLoginResponse.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
11 changes: 0 additions & 11 deletions
11
src/main/java/space/space_spring/dto/user/PostUserSignupResponse.java
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
src/main/java/space/space_spring/exception/MultipartFileException.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,20 @@ | ||
package space.space_spring.exception; | ||
|
||
import lombok.Getter; | ||
import space.space_spring.response.status.ResponseStatus; | ||
|
||
@Getter | ||
public class MultipartFileException extends RuntimeException { | ||
|
||
private final ResponseStatus exceptionStatus; | ||
|
||
public MultipartFileException(ResponseStatus exceptionStatus) { | ||
super(exceptionStatus.getMessage()); | ||
this.exceptionStatus = exceptionStatus; | ||
} | ||
|
||
public MultipartFileException(ResponseStatus exceptionStatus, String message) { | ||
super(message); | ||
this.exceptionStatus = exceptionStatus; | ||
} | ||
} |
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
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
35 changes: 35 additions & 0 deletions
35
src/main/java/space/space_spring/validator/AllowedImageFileExtensions.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,35 @@ | ||
package space.space_spring.validator; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum AllowedImageFileExtensions { | ||
/** | ||
* 허용가능한 이미지 파일 확장자 list | ||
*/ | ||
JPEG("jpeg"), | ||
JPG("jpg"), | ||
PNG("png"), | ||
GIF("gif"), | ||
WebP("webp"), | ||
SVG("svg"), | ||
BMP("bmp"), | ||
TIF("tif"), | ||
TIFF("tiff"), | ||
HEIC("heic"); | ||
|
||
private String extension; | ||
|
||
AllowedImageFileExtensions(String extension) { | ||
this.extension = extension; | ||
} | ||
|
||
public static boolean contains(String extension) { | ||
for (AllowedImageFileExtensions allowedImageFileExtensions : AllowedImageFileExtensions.values()) { | ||
if (allowedImageFileExtensions.getExtension().equals(extension)) { | ||
return true; | ||
} | ||
} | ||
return false; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/main/java/space/space_spring/validator/ValidFileValidator.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,4 +107,10 @@ spring: | |
messages: | ||
basename: errors | ||
|
||
--- | ||
|
||
spring: | ||
servlet: | ||
multipart: | ||
max-file-size: 5MB | ||
max-request-size: 5MB |