Skip to content

Commit

Permalink
Merge pull request #216 from TEAM-SAMSION/PET-312
Browse files Browse the repository at this point in the history
PET-312 refactor : 랜딩 API 요청값 수정
  • Loading branch information
isprogrammingfun authored Jun 6, 2024
2 parents 0cbe8ec + 633d06c commit 250de70
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class LandingRequest {
private static final Pattern EMAIL_PATTERN = Pattern.compile("^[A-Za-z0-9+_.-]+@(.+)$");

private String email;
private String name;

public void setEmail(String email) {
if (!EMAIL_PATTERN.matcher(email).matches()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class LandingMapper {

public static Landing toLandingEntity(LandingRequest landingRequest) {
return new Landing(landingRequest.getEmail(), landingRequest.getName());
return new Landing(landingRequest.getEmail());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

Expand All @@ -21,11 +20,8 @@ public class Landing {

private String email;

private String name;

public Landing(String email, String name) {
public Landing(String email) {
this.email = email;
this.name = name;
}

}

0 comments on commit 250de70

Please sign in to comment.