Skip to content

Commit

Permalink
Merge pull request #25 from KOA-TF/feat/comment
Browse files Browse the repository at this point in the history
refactor : 칼럼명 수정 및 메서드명 수정
  • Loading branch information
isprogrammingfun authored Nov 5, 2023
2 parents 9009912 + f51e436 commit 0f3f68d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public MemberInfoResponse getMemberInfo(){
}

@PostMapping
public void postMemberInfo(@RequestPart(value = "dto") MemberDetailCreateRequest memberInfoCreateRequest, @RequestPart(value = "file") MultipartFile multipartFile){
memberDetailCreateUseCase.createMemberInfo(memberInfoCreateRequest, multipartFile);
public void postMemberDetail(@RequestPart(value = "dto") MemberDetailCreateRequest memberInfoCreateRequest, @RequestPart(value = "file") MultipartFile multipartFile){
memberDetailCreateUseCase.createMemberDetail(memberInfoCreateRequest, multipartFile);
}

@PostMapping("/register")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
@Entity
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@SQLDelete(sql = "UPDATE token SET deleted = true WHERE token_id = ?")
@Where(clause = "deleted = false")
@Getter
@SQLDelete(sql = "UPDATE token SET is_deleted = true WHERE token_id = ?")
@Where(clause = "is_deleted = false")
public class Token extends BaseEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand All @@ -29,5 +28,5 @@ public class Token extends BaseEntity {
private String email;
private String tokenValue;

private Boolean deleted = Boolean.FALSE;
private Boolean isDeleted = Boolean.FALSE;
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class MemberDetailCreateUseCase {
private final LinkSaveService linkSaveService;
private final AwsS3Service awsS3Service;

public void createMemberInfo(MemberDetailCreateRequest memberInfoCreateRequest, MultipartFile multipartFile) {
public void createMemberDetail(MemberDetailCreateRequest memberInfoCreateRequest, MultipartFile multipartFile) {
String imageUrl = Optional.ofNullable(multipartFile)
.map(awsS3Service::uploadFile)
.orElse(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ public class Interest extends BaseEntity {
private String content;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "member_info_id")
@JoinColumn(name = "member_detail_id")
private MemberDetail memberDetail;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ public class Link extends BaseEntity {
private String link;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "member_info_id")
@JoinColumn(name = "member_detail_id")
private MemberDetail memberDetail;
}

0 comments on commit 0f3f68d

Please sign in to comment.