-
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.
* [feat] add isDeleted condition * [feat] add dto for response * [feat] logic for fail response * [feat] logic for duplicated store validation * [feat] delete fail response * [feat] logic for validate duplicated store * [reface] delete unnecessary method * [reface] apply code reviews * [refac] delete unnecessary function * [fix] correcting parameter variable errors
- Loading branch information
Showing
7 changed files
with
26 additions
and
32 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
6 changes: 2 additions & 4 deletions
6
src/main/java/org/hankki/hankkiserver/api/store/service/command/StoreValidationCommand.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,13 +1,11 @@ | ||
package org.hankki.hankkiserver.api.store.service.command; | ||
|
||
import org.hankki.hankkiserver.api.store.controller.request.StoreDuplicateValidationRequest; | ||
|
||
public record StoreValidationCommand ( | ||
long universityId, | ||
double latitude, | ||
double longitude | ||
) { | ||
public static StoreValidationCommand of(StoreDuplicateValidationRequest request) { | ||
return new StoreValidationCommand(request.universityId(), request.latitude(), request.longitude()); | ||
public static StoreValidationCommand of(long universityId, double latitude, double longitude) { | ||
return new StoreValidationCommand(universityId, latitude, longitude); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
.../org/hankki/hankkiserver/api/store/service/response/StoreDuplicateValidationResponse.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.hankki.hankkiserver.api.store.service.response; | ||
|
||
public record StoreDuplicateValidationResponse( | ||
Long id, | ||
boolean isRegistered | ||
) { | ||
public static StoreDuplicateValidationResponse of(Long id, boolean isRegistered) { | ||
return new StoreDuplicateValidationResponse(id, isRegistered); | ||
} | ||
} |
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