This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from f-lab-edu/feature/11
feature/11
- Loading branch information
Showing
14 changed files
with
325 additions
and
67 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
17 changes: 17 additions & 0 deletions
17
src/main/java/com/delfood/controller/reqeust/GetAddressByZipRequest.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,17 @@ | ||
package com.delfood.controller.reqeust; | ||
|
||
import javax.validation.constraints.NotNull; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
public class GetAddressByZipRequest extends GetAddressRequestBase { | ||
@NotNull | ||
private String townName; | ||
|
||
|
||
protected String generateKey() { | ||
return "townName:" + this.townName; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/delfood/controller/reqeust/GetAddressRequestBase.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,28 @@ | ||
package com.delfood.controller.reqeust; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
public abstract class GetAddressRequestBase { | ||
protected Integer buildingNumber; | ||
protected Integer buildingSideNumber; | ||
protected String buildingNameForCity; | ||
protected String lastSearchBuildingManagementNumber; | ||
|
||
protected abstract String generateKey(); | ||
|
||
/** | ||
* 캐싱을 진행할 키를 제작한다. | ||
* @author jun | ||
* @return | ||
*/ | ||
public String getKey() { | ||
return "buildingNumber:" + this.buildingNumber + "/" | ||
+ "buildingSideNumber:" + this.buildingSideNumber + "/" | ||
+ "buildingNameForCity" + this.buildingNameForCity + "/" | ||
+ "lastSearchBuildingManagementNumber" + this.lastSearchBuildingManagementNumber + "/" | ||
+ generateKey(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/delfood/controller/reqeust/GetAddressesByRoadRequest.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,17 @@ | ||
package com.delfood.controller.reqeust; | ||
|
||
import javax.validation.constraints.NotNull; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@Getter | ||
@Setter | ||
public class GetAddressesByRoadRequest extends GetAddressRequestBase { | ||
@NotNull | ||
private String roadName; | ||
|
||
protected String generateKey() { | ||
return "roadName" + roadName; | ||
} | ||
} |
17 changes: 0 additions & 17 deletions
17
src/main/java/com/delfood/controller/reqeust/GetAddressesRequest.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
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.