-
Notifications
You must be signed in to change notification settings - Fork 2
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
151 changed files
with
1,982 additions
and
2,418 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
77 changes: 0 additions & 77 deletions
77
api/src/main/java/com/walking/api/converter/TrafficDetailConverter.java
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
api/src/main/java/com/walking/api/converter/TrafficDetailInfoConverter.java
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
api/src/main/java/com/walking/api/domain/client/RestClient.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,3 @@ | ||
package com.walking.api.domain.client; | ||
|
||
public interface RestClient {} |
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
...web/client/webclient/WebClientConfig.java → ...domain/client/config/WebClientConfig.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
3 changes: 3 additions & 0 deletions
3
api/src/main/java/com/walking/api/domain/client/dto/request/MapRequestDto.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,3 @@ | ||
package com.walking.api.domain.client.dto.request; | ||
|
||
public interface MapRequestDto {} |
2 changes: 1 addition & 1 deletion
2
...eb/client/dto/request/TMapRequestDto.java → ...in/client/dto/request/TMapRequestDto.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
13 changes: 13 additions & 0 deletions
13
api/src/main/java/com/walking/api/domain/client/dto/response/TMapResponseDto.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,13 @@ | ||
package com.walking.api.domain.client.dto.response; | ||
|
||
import com.walking.api.domain.client.dto.response.detail.FeatureDetail; | ||
import java.util.List; | ||
import lombok.*; | ||
|
||
@Data | ||
@ToString | ||
public class TMapResponseDto { | ||
|
||
private String type; | ||
private List<FeatureDetail> featureDetails; | ||
} |
10 changes: 10 additions & 0 deletions
10
api/src/main/java/com/walking/api/domain/client/dto/response/detail/FeatureDetail.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 com.walking.api.domain.client.dto.response.detail; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class FeatureDetail { | ||
private String type; | ||
private GeometryDetail geometryDetail; | ||
private PropertyDetails propertyDetails; | ||
} |
4 changes: 2 additions & 2 deletions
4
.../client/dto/response/detail/Geometry.java → ...t/dto/response/detail/GeometryDetail.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,10 @@ | ||
package com.walking.api.web.client.dto.response.detail; | ||
package com.walking.api.domain.client.dto.response.detail; | ||
|
||
import java.util.List; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class Geometry { | ||
public class GeometryDetail { | ||
private String type; | ||
private List<?> coordinates; // LineString은 2차원 배열을 사용, Point는 1차원이지만 2차원으로 통일 | ||
} |
4 changes: 2 additions & 2 deletions
4
...lient/dto/response/detail/Properties.java → .../dto/response/detail/PropertyDetails.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
3 changes: 2 additions & 1 deletion
3
...i/web/client/webclient/WebClientUtil.java → ...api/domain/client/util/WebClientUtil.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
39 changes: 39 additions & 0 deletions
39
api/src/main/java/com/walking/api/domain/log/ServiceLogAspect.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,39 @@ | ||
package com.walking.api.domain.log; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
import org.apache.commons.lang3.time.StopWatch; | ||
import org.aspectj.lang.ProceedingJoinPoint; | ||
import org.aspectj.lang.Signature; | ||
import org.aspectj.lang.annotation.Around; | ||
import org.aspectj.lang.annotation.Aspect; | ||
import org.aspectj.lang.annotation.Pointcut; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Slf4j | ||
@Aspect | ||
@Component | ||
public class ServiceLogAspect { | ||
|
||
/** Service 패키지 내의 모든 메소드에 대해 로깅을 수행한다. */ | ||
@Pointcut(value = "execution(* com.walking.api.domain..*.service..*.*(..))") | ||
public void serviceAdvice() {} | ||
|
||
@Around("serviceAdvice()") | ||
public Object requestLogging(ProceedingJoinPoint joinPoint) throws Throwable { | ||
Signature signature = joinPoint.getSignature(); | ||
String[] splitByDot = signature.getDeclaringTypeName().split("\\."); | ||
String serviceName = splitByDot[splitByDot.length - 1]; | ||
|
||
Object[] args = joinPoint.getArgs(); | ||
|
||
StopWatch stopWatch = new StopWatch(); | ||
stopWatch.start(); | ||
log.debug("{} execute with {}", serviceName, args); | ||
|
||
Object proceed = joinPoint.proceed(); | ||
|
||
stopWatch.stop(); | ||
log.debug("{} finished in {}ms", serviceName, stopWatch.getTime()); | ||
return proceed; | ||
} | ||
} |
Oops, something went wrong.