-
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.
- Loading branch information
Showing
127 changed files
with
802 additions
and
974 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
4 changes: 2 additions & 2 deletions
4
...pp-api/src/main/java/com/beautify_project/bp_app_api/config/WebSecurityConfiguration.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
42 changes: 0 additions & 42 deletions
42
.../beautify_project/bp_app_api/config/properties/NaverCloudPlatformObjectStorageConfig.java
This file was deleted.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
...project/bp_app_api/config/properties/NaverCloudPlatformObjectStorageConfigProperties.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,43 @@ | ||
package com.beautify_project.bp_app_api.config.properties; | ||
|
||
import com.beautify_project.bp_app_api.exception.BpCustomException; | ||
import com.beautify_project.bp_app_api.response.ErrorResponseMessage.ErrorCode; | ||
import com.beautify_project.bp_utils.Validator; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.apache.commons.lang3.StringUtils; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
|
||
@ConfigurationProperties(prefix = "ncp") | ||
@Slf4j | ||
public record NaverCloudPlatformObjectStorageConfigProperties(String enabled, String endpoint, String regionName, String bucketName, String accessKey, | ||
String secretKey) { | ||
|
||
public NaverCloudPlatformObjectStorageConfigProperties { | ||
validate(enabled, endpoint, regionName, bucketName, accessKey, secretKey); | ||
} | ||
|
||
private void validate(String enabled, String endpoint, String regionName, String bucketName, String accessKey, | ||
String secretKey) { | ||
|
||
if (Validator.isEmptyOrBlank(enabled) || StringUtils.equals("FALSE", | ||
enabled.toUpperCase())) { | ||
log.info("NaverCloudPlatformObjectStorageRepository is disabled"); | ||
return; | ||
} | ||
|
||
if (Validator.isEmptyOrBlank(endpoint) || Validator.isEmptyOrBlank(regionName) | ||
|| Validator.isEmptyOrBlank(bucketName) || Validator.isEmptyOrBlank(accessKey)) { | ||
throw new BpCustomException("Naver cloud paltform 관련 설정값이 올바르지 않습니다.", ErrorCode.IS001); | ||
} | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "NaverCloudPlatformObjectStorageConfig{" + | ||
"bucketName='" + bucketName + '\'' + | ||
", regionName='" + regionName + '\'' + | ||
", endpoint='" + endpoint + '\'' + | ||
'}'; | ||
} | ||
} |
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
8 changes: 4 additions & 4 deletions
8
bp-app-api/src/main/java/com/beautify_project/bp_app_api/controller/AuthController.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
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
4 changes: 2 additions & 2 deletions
4
bp-app-api/src/main/java/com/beautify_project/bp_app_api/controller/MemberController.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
8 changes: 4 additions & 4 deletions
8
bp-app-api/src/main/java/com/beautify_project/bp_app_api/controller/ReviewController.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
8 changes: 4 additions & 4 deletions
8
bp-app-api/src/main/java/com/beautify_project/bp_app_api/controller/ShopController.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
23 changes: 0 additions & 23 deletions
23
...main/java/com/beautify_project/bp_app_api/dto/review/FindReviewListRequestParameters.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
bp-app-api/src/main/java/com/beautify_project/bp_app_api/entity/embedded/BusinessTime.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
15 changes: 0 additions & 15 deletions
15
...pi/src/main/java/com/beautify_project/bp_app_api/exception/AlreadyProcessedException.java
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
bp-app-api/src/main/java/com/beautify_project/bp_app_api/exception/BpCustomException.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 com.beautify_project.bp_app_api.exception; | ||
|
||
import com.beautify_project.bp_app_api.response.ErrorResponseMessage.ErrorCode; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class BpCustomException extends RuntimeException { | ||
|
||
private final ErrorCode errorCode; | ||
|
||
public BpCustomException(final ErrorCode errorCode) { | ||
super(errorCode.getErrorMessage()); | ||
this.errorCode = errorCode; | ||
} | ||
|
||
public BpCustomException(final String message, final ErrorCode errorCode) { | ||
super(message); | ||
this.errorCode = errorCode; | ||
} | ||
} |
25 changes: 0 additions & 25 deletions
25
...p-api/src/main/java/com/beautify_project/bp_app_api/exception/ConfigurationException.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.