-
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.
Merge branch 'be-dev' into feature/#282
- Loading branch information
Showing
16 changed files
with
282 additions
and
114 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
3 changes: 3 additions & 0 deletions
3
server/src/main/java/server/haengdong/HaengdongApplication.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
7 changes: 7 additions & 0 deletions
7
server/src/main/java/server/haengdong/application/request/MemberNameUpdateAppRequest.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,7 @@ | ||
package server.haengdong.application.request; | ||
|
||
public record MemberNameUpdateAppRequest( | ||
String before, | ||
String after | ||
) { | ||
} |
8 changes: 8 additions & 0 deletions
8
server/src/main/java/server/haengdong/application/request/MemberNamesUpdateAppRequest.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,8 @@ | ||
package server.haengdong.application.request; | ||
|
||
import java.util.List; | ||
|
||
public record MemberNamesUpdateAppRequest( | ||
List<MemberNameUpdateAppRequest> members | ||
) { | ||
} |
4 changes: 0 additions & 4 deletions
4
server/src/main/java/server/haengdong/application/request/MemberUpdateAppRequest.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
18 changes: 18 additions & 0 deletions
18
server/src/main/java/server/haengdong/presentation/request/MemberNameUpdateRequest.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,18 @@ | ||
package server.haengdong.presentation.request; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import server.haengdong.application.request.MemberNameUpdateAppRequest; | ||
|
||
public record MemberNameUpdateRequest( | ||
|
||
@NotBlank(message = "λ©€λ² μ΄λ¦μ κ³΅λ°±μΌ μ μμ΅λλ€.") | ||
String before, | ||
|
||
@NotBlank(message = "λ©€λ² μ΄λ¦μ κ³΅λ°±μΌ μ μμ΅λλ€.") | ||
String after | ||
) { | ||
|
||
public MemberNameUpdateAppRequest toAppRequest() { | ||
return new MemberNameUpdateAppRequest(before, after); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
server/src/main/java/server/haengdong/presentation/request/MemberNamesUpdateRequest.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,16 @@ | ||
package server.haengdong.presentation.request; | ||
|
||
import jakarta.validation.Valid; | ||
import java.util.List; | ||
import server.haengdong.application.request.MemberNamesUpdateAppRequest; | ||
|
||
public record MemberNamesUpdateRequest( | ||
@Valid List<MemberNameUpdateRequest> members | ||
) { | ||
|
||
public MemberNamesUpdateAppRequest toAppRequest() { | ||
return new MemberNamesUpdateAppRequest(members.stream() | ||
.map(MemberNameUpdateRequest::toAppRequest) | ||
.toList()); | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
server/src/main/java/server/haengdong/presentation/request/MemberUpdateRequest.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
Oops, something went wrong.