Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : pysical->physical 변환 #63

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)
public record InterestDto (
Boolean isPysical,
Boolean isPhysical,
Boolean isHear,
Boolean isVisual,
Boolean isElderly,
Boolean isChild
){
public static InterestDto of( Boolean isPysical,
public static InterestDto of( Boolean isPhysical,
Boolean isHear,
Boolean isVisual,
Boolean isElderly,
Boolean isChild){
return InterestDto.builder()
.isPysical(isPysical)
.isPhysical(isPhysical)
.isHear(isHear)
.isChild(isChild)
.isElderly(isElderly)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public class Interest extends BaseTimeEntity {
@JoinColumn(name = "member_id")
private Member member;

@Column(name = "pysical")
private Boolean isPysical;
@Column(name = "physical")
private Boolean isPhysical;

@Column(name = "hear")
private Boolean isHear;
Expand All @@ -37,17 +37,17 @@ public class Interest extends BaseTimeEntity {
private Boolean isElderly;

public void update(InterestDto interestDto) {
this.isPysical=interestDto.isPysical();
this.isPhysical=interestDto.isPhysical();
this.isHear=interestDto.isHear();
this.isVisual=interestDto.isVisual();
this.isChild=interestDto.isChild();
this.isElderly = interestDto.isElderly();
}

@Builder
public Interest(Member member, Boolean isPysical, Boolean isHear, Boolean isVisual, Boolean isElderly, Boolean isChild){
public Interest(Member member, Boolean isPhysical, Boolean isHear, Boolean isVisual, Boolean isElderly, Boolean isChild){
this.member = member;
this.isPysical=isPysical;
this.isPhysical=isPhysical;
this.isHear=isHear;
this.isVisual=isVisual;
this.isChild=isChild;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public LoginRes signIn(String token, String type) throws IOException {
.member(member)
.isHear(false)
.isChild(false)
.isPysical(false)
.isPhysical(false)
.isVisual(false)
.isElderly(false)
.build();
Expand Down Expand Up @@ -111,7 +111,7 @@ public LoginRes signIn(String token, String type) throws IOException {
.member(member)
.isHear(false)
.isChild(false)
.isPysical(false)
.isPhysical(false)
.isVisual(false)
.isElderly(false)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public InterestDto findMemberInterest(Member member){
Interest interest = interestRepository.findByMemberAndDeletedAtIsNull(member);
//Business
InterestDto interestDto = InterestDto.of(
interest.getIsPysical(),
interest.getIsPhysical(),
interest.getIsHear(),
interest.getIsVisual(),
interest.getIsElderly(),
Expand Down