-
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.
Merge pull request #72 from TRIP-Side-Project/dev
회원 가입 로직 수정 merge
- Loading branch information
Showing
3 changed files
with
11 additions
and
12 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
13 changes: 5 additions & 8 deletions
13
src/main/java/com/api/trip/domain/member/controller/dto/JoinRequest.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,20 +1,17 @@ | ||
package com.api.trip.domain.member.controller.dto; | ||
|
||
import com.api.trip.domain.member.model.Member; | ||
import lombok.Getter; | ||
import lombok.*; | ||
import org.springframework.web.multipart.MultipartFile; | ||
|
||
@Getter | ||
@Setter | ||
@ToString | ||
public class JoinRequest { | ||
|
||
private String email; | ||
private String password; | ||
private String nickname; | ||
private MultipartFile profileImg; | ||
|
||
public static Member of(JoinRequest joinRequest, String password){ | ||
return Member.builder() | ||
.email(joinRequest.getEmail()) | ||
.nickname(joinRequest.getNickname()) | ||
.password(password) | ||
.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