Skip to content

Commit

Permalink
Merge branch 'feature/auth' of https://github.com/Orange-Co/DDANZI_Se…
Browse files Browse the repository at this point in the history
…rver into develop
  • Loading branch information
Kang1221 committed Sep 9, 2024
2 parents 44565d1 + 8da45cc commit fece1a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public class Authentication extends BaseTimeEntity {
@JoinColumn(name = "user_id")
private User user;

@Column(name="ci")
private String ci;

@Column(name = "name", nullable = false, length = 255)
private String name; //이름

Expand All @@ -45,8 +48,9 @@ public class Authentication extends BaseTimeEntity {


@Builder
public Authentication(User user, String name, String phone, LocalDate birth, Sex sex, Nation nation) {
public Authentication(User user, String ci, String name, String phone, LocalDate birth, Sex sex, Nation nation) {
this.user = user;
this.ci = ci;
this.name = name;
this.phone = phone;
this.birth = birth;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/co/orange/ddanzi/dto/auth/VerifyRequestDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

@Getter
public class VerifyRequestDto {
private String ci;
private String name;
private String phone;
private LocalDate birth;
Expand All @@ -19,6 +20,7 @@ public class VerifyRequestDto {
public Authentication toEntity(User user, String phone){
return Authentication.builder()
.user(user)
.ci(ci)
.name(name)
.phone(phone)
.nation(Nation.KOR)
Expand Down

0 comments on commit fece1a0

Please sign in to comment.