-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 행사 조회시 비회원에 의해 만들어진 행사인지 여부 추가
- Loading branch information
Showing
20 changed files
with
217 additions
and
299 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
13 changes: 1 addition & 12 deletions
13
server/src/main/java/haengdong/event/application/request/EventUpdateAppRequest.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,17 +1,6 @@ | ||
package haengdong.event.application.request; | ||
|
||
public record EventUpdateAppRequest( | ||
String eventName, | ||
String bankName, | ||
String accountNumber | ||
String eventName | ||
) { | ||
|
||
public boolean isEventNameExist() { | ||
return eventName != null && !eventName.trim().isEmpty(); | ||
} | ||
|
||
public boolean isAccountExist() { | ||
return bankName != null && !bankName.trim().isEmpty() | ||
&& accountNumber != null && !accountNumber.trim().isEmpty(); | ||
} | ||
} |
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
server/src/main/java/haengdong/event/application/response/UserAppResponse.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 haengdong.event.application.response; | ||
|
||
import haengdong.user.domain.User; | ||
|
||
public record UserAppResponse( | ||
String bankName, | ||
String accountNumber, | ||
Boolean isGuest | ||
) { | ||
public static UserAppResponse of(User user) { | ||
return new UserAppResponse(user.getBank(), user.getAccountNumber(), user.isGuest()); | ||
} | ||
} |
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
8 changes: 4 additions & 4 deletions
8
server/src/main/java/haengdong/event/presentation/request/EventUpdateRequest.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,14 +1,14 @@ | ||
package haengdong.event.presentation.request; | ||
|
||
import haengdong.event.application.request.EventUpdateAppRequest; | ||
import jakarta.validation.constraints.NotBlank; | ||
|
||
public record EventUpdateRequest( | ||
String eventName, | ||
String bankName, | ||
String accountNumber | ||
@NotBlank | ||
String eventName | ||
) { | ||
|
||
public EventUpdateAppRequest toAppRequest() { | ||
return new EventUpdateAppRequest(eventName, bankName, accountNumber); | ||
return new EventUpdateAppRequest(eventName); | ||
} | ||
} |
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.