Skip to content

Commit

Permalink
[feat] regiond을 city, gu 로 세분화
Browse files Browse the repository at this point in the history
  • Loading branch information
yunji118 committed Jan 11, 2024
1 parent 3388981 commit 3649755
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public class JoinRequestDto {
private String email;
private String password;
private String language;
private String area;
private String city;
private String gu;
private Role role;

@Builder
Expand All @@ -25,7 +26,8 @@ public User toEntity(){
.email(email)
.password(password)
.language(language)
.area(area)
.city(city)
.gu(gu)
.role(Role.ROLE_USER)
.build();
}
Expand Down
8 changes: 5 additions & 3 deletions src/main/java/com/ALGo/ALGo_server/entity/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public class User implements UserDetails {
private String email;
private String password;
private String refreshToken;
private String area;
private String city;
private String gu;
private String language;

@Enumerated(EnumType.STRING)
Expand All @@ -49,10 +50,11 @@ public Collection<? extends GrantedAuthority> getAuthorities() {
}

@Builder
public User(String email, String password, String area, String language, Role role){
public User(String email, String password, String city, String gu, String language, Role role){
this.email = email;
this.password = password;
this.area = area;
this.city = city;
this.gu = gu;
this.language = language;
this.role = role;
}
Expand Down

0 comments on commit 3649755

Please sign in to comment.