Skip to content

Commit 37f1a97

Browse files
committed
refactor(user): 역할/팀 변경 도메인 메서드 추가
1 parent 18f9d0d commit 37f1a97

File tree

1 file changed

+2
-0
lines changed
  • src/main/java/inha/gdgoc/domain/user/entity

1 file changed

+2
-0
lines changed

src/main/java/inha/gdgoc/domain/user/entity/User.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,6 @@ public void updatePassword(String password) throws NoSuchAlgorithmException, Inv
131131
public boolean isGuest() {
132132
return this.userRole == UserRole.GUEST;
133133
}
134+
public void changeRole(UserRole role) { this.userRole = role; }
135+
public void changeTeam(TeamType team) { this.team = team; }
134136
}

0 commit comments

Comments
 (0)