Skip to content

Commit

Permalink
feat: Session 수정 도메인 로직 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
koreaioi committed Nov 12, 2024
1 parent 6d94dbe commit 47fab62
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,15 @@ public static Session of(SessionRequestDto sessionRequestDto, java.net.URL imgUr
.imgUrl(imgUrl.toString())
.build();
}

public void updateField(SessionRequestDto sessionRequestDto) {
this.title = sessionRequestDto.title();
this.description = sessionRequestDto.description();
this.generation = sessionRequestDto.generation();
this.isPublic = sessionRequestDto.isPublic();
}

public void updateImgUrl( java.net.URL imgUrl) {
this.imgUrl = imgUrl.toString();
}
}

0 comments on commit 47fab62

Please sign in to comment.