Skip to content

Commit

Permalink
refactor #56 프로필 기본정보 응답 Dto로 이름 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
huncozyboy committed Nov 10, 2024
1 parent e825ce8 commit ae016de
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
import land.leets.Carrot.domain.user.entity.Ceo;
import land.leets.Carrot.domain.user.entity.Gender;

public record CeoProfileResponse(
public record CeoBasicInfoResponse(
String ceoName,
String ceoPhoneNumber,
String ceoAddress,
Gender gender,
Integer birthYear
) implements ProfileResponse {
public static CeoProfileResponse from(Ceo ceo) {
return new CeoProfileResponse(
) implements UserBasicInfoResponse {
public static CeoBasicInfoResponse from(Ceo ceo) {
return new CeoBasicInfoResponse(
ceo.getCeoName(),
ceo.getCeoPhoneNumber(),
ceo.getCeoAddress(),
Expand Down

0 comments on commit ae016de

Please sign in to comment.