-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/310-validate-funding-contribute-a…
…mount
- Loading branch information
Showing
20 changed files
with
195 additions
and
86 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
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
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: 4 additions & 7 deletions
11
src/main/java/org/kakaoshare/backend/domain/member/dto/oauth/issue/ReissueResponse.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,10 +1,7 @@ | ||
package org.kakaoshare.backend.domain.member.dto.oauth.issue; | ||
|
||
import org.kakaoshare.backend.domain.member.dto.oauth.token.RefreshTokenDto; | ||
import org.kakaoshare.backend.domain.member.entity.token.RefreshToken; | ||
|
||
public record ReissueResponse(String accessToken, RefreshTokenDto refreshToken) { | ||
public static ReissueResponse of(final String accessToken, final RefreshToken refreshToken) { | ||
return new ReissueResponse(accessToken, RefreshTokenDto.from(refreshToken)); | ||
public record ReissueResponse(String accessToken) { | ||
public static ReissueResponse from(final ReissueResult reissueResult) { | ||
return new ReissueResponse(reissueResult.accessToken()); | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/org/kakaoshare/backend/domain/member/dto/oauth/issue/ReissueResult.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,10 @@ | ||
package org.kakaoshare.backend.domain.member.dto.oauth.issue; | ||
|
||
import org.kakaoshare.backend.domain.member.dto.oauth.token.RefreshTokenDto; | ||
import org.kakaoshare.backend.domain.member.entity.token.RefreshToken; | ||
|
||
public record ReissueResult(String accessToken, RefreshTokenDto refreshToken) { | ||
public static ReissueResult of(final String accessToken, final RefreshToken refreshToken) { | ||
return new ReissueResult(accessToken, RefreshTokenDto.from(refreshToken)); | ||
} | ||
} |
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: 4 additions & 0 deletions
4
src/main/java/org/kakaoshare/backend/domain/product/dto/ProductDto.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
19 changes: 18 additions & 1 deletion
19
src/main/java/org/kakaoshare/backend/logging/config/LoggingConfig.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,15 +1,32 @@ | ||
package org.kakaoshare.backend.logging.config; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import org.kakaoshare.backend.logging.interceptor.LoggingInterceptor; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.util.StopWatch; | ||
import org.springframework.web.context.annotation.RequestScope; | ||
import org.springframework.web.servlet.config.annotation.InterceptorRegistry; | ||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; | ||
|
||
@Configuration | ||
public class LoggingConfig { | ||
@RequiredArgsConstructor | ||
public class LoggingConfig implements WebMvcConfigurer { | ||
private static final String METRIC_URL_PREFIX = "/actuator"; | ||
private static final String FAVICON_URL = "/favicon.ico"; | ||
|
||
private final LoggingInterceptor loggingInterceptor; | ||
|
||
@Bean | ||
@RequestScope | ||
public StopWatch stopWatch() { | ||
return new StopWatch(); | ||
} | ||
|
||
@Override | ||
public void addInterceptors(final InterceptorRegistry registry) { | ||
registry.addInterceptor(loggingInterceptor) | ||
.addPathPatterns("/**") | ||
.excludePathPatterns(METRIC_URL_PREFIX, FAVICON_URL); | ||
} | ||
} |
Oops, something went wrong.