Skip to content

Commit

Permalink
refactor(Recruitment): 모집 설명 칼럼명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
SongJaeHoonn committed Jan 8, 2025
1 parent 6d403cb commit 070d21b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class RecruitmentJpaEntity extends BaseEntity {

@Column(nullable = false)
@Size(min = 1, max = 10000, message = "{size.recruitment.description}")
private String description;
private String recruitmentDescription;

@Column(nullable = false)
@Size(min = 1, message = "{size.recruitment.target}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public Recruitment fromDto(RecruitmentRequestDto requestDto) {
.endDate(requestDto.getEndDate())
.recruitmentSchedule(requestDto.getRecruitmentSchedule())
.applicationType(requestDto.getApplicationType())
.description(requestDto.getDescription())
.recruitmentDescription(requestDto.getRecruitmentDescription())
.target(requestDto.getTarget())
.isDeleted(false)
.build();
Expand Down Expand Up @@ -53,7 +53,7 @@ public RecruitmentDetailsResponseDto toDetailsDto(Recruitment recruitment) {
.endDate(recruitment.getEndDate())
.recruitmentSchedule(recruitment.getRecruitmentSchedule())
.applicationType(recruitment.getApplicationType())
.description(recruitment.getDescription())
.recruitmentDescription(recruitment.getRecruitmentDescription())
.target(recruitment.getTarget())
.status(recruitment.getStatus().getDescription())
.updatedAt(recruitment.getUpdatedAt())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class RecruitmentRequestDto {

@NotNull(message = "{notNull.recruitment.description}")
@Schema(description = "설명", example = "실무에 가까운 경험을 쌓을 수 있어요.", required = true)
private String description;
private String recruitmentDescription;

@NotNull(message = "{notNull.recruitment.target}")
@Schema(description = "대상", example = "2~3학년", required = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class RecruitmentUpdateRequestDto {
private ApplicationType applicationType;

@Schema(description = "설명", example = "실무에 가까운 경험을 쌓을 수 있어요.")
private String description;
private String recruitmentDescription;

@Schema(description = "대상", example = "2~3학년")
private String target;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class RecruitmentDetailsResponseDto {
private LocalDateTime endDate;
private String recruitmentSchedule;
private ApplicationType applicationType;
private String description;
private String recruitmentDescription;
private String target;
private String status;
private LocalDateTime updatedAt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class Recruitment {
private LocalDateTime endDate;
private String recruitmentSchedule;
private ApplicationType applicationType;
private String description;
private String recruitmentDescription;
private String target;
private RecruitmentStatus status;
private Boolean isDeleted;
Expand All @@ -42,7 +42,7 @@ public void update(RecruitmentUpdateRequestDto recruitmentUpdateRequestDto) {
Optional.ofNullable(recruitmentUpdateRequestDto.getEndDate()).ifPresent(this::setEndDate);
Optional.ofNullable(recruitmentUpdateRequestDto.getRecruitmentSchedule()).ifPresent(this::setRecruitmentSchedule);
Optional.ofNullable(recruitmentUpdateRequestDto.getApplicationType()).ifPresent(this::setApplicationType);
Optional.ofNullable(recruitmentUpdateRequestDto.getDescription()).ifPresent(this::setDescription);
Optional.ofNullable(recruitmentUpdateRequestDto.getRecruitmentDescription()).ifPresent(this::setRecruitmentDescription);
Optional.ofNullable(recruitmentUpdateRequestDto.getTarget()).ifPresent(this::setTarget);
}

Expand Down

0 comments on commit 070d21b

Please sign in to comment.