-
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.
- Loading branch information
Showing
7 changed files
with
68 additions
and
16 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
28 changes: 28 additions & 0 deletions
28
src/main/java/com/hackathon/nullnullteam/member/controller/dto/MemberRequest.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.hackathon.nullnullteam.member.controller.dto; | ||
|
||
import com.hackathon.nullnullteam.member.Gender; | ||
import com.hackathon.nullnullteam.member.service.dto.MemberCommand; | ||
import lombok.Builder; | ||
|
||
public class MemberRequest { | ||
|
||
@Builder | ||
public record Info( | ||
String name, | ||
String gender, | ||
int age, | ||
String profile, | ||
String email | ||
) { | ||
|
||
public MemberCommand.Info toCommand() { | ||
return MemberCommand.Info.builder() | ||
.name(name) | ||
.gender(gender) | ||
.age(age) | ||
.profile(profile) | ||
.email(email) | ||
.build(); | ||
} | ||
} | ||
} |
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
src/main/java/com/hackathon/nullnullteam/member/service/dto/MemberCommand.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 com.hackathon.nullnullteam.member.service.dto; | ||
|
||
import lombok.Builder; | ||
|
||
public class MemberCommand { | ||
|
||
@Builder | ||
public record Info( | ||
String name, | ||
String gender, | ||
int age, | ||
String profile, | ||
String email | ||
) { | ||
|
||
|
||
} | ||
} |