Skip to content

Commit

Permalink
hotfix : careerId 응답dto에 추가해서 같이 반환
Browse files Browse the repository at this point in the history
  • Loading branch information
huncozyboy committed Nov 13, 2024
1 parent 5e44002 commit 30cb37c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
import land.leets.Carrot.domain.user.entity.CareerDetails;

public record CareerResponse(
Long careerId,
String workplace, // 일한 곳
String workType, // 했던 일
String workYear, // 일한 연도
String workPeriod // 일한 기간
) {
public static CareerResponse from(CareerDetails careerDetails) {
return new CareerResponse(
careerDetails.getId(),
careerDetails.getWorkplace(),
careerDetails.getWorkType(),
careerDetails.getWorkYear(),
Expand Down

0 comments on commit 30cb37c

Please sign in to comment.