Skip to content

Commit

Permalink
HOT FIX : 프로그램 상세뷰 분기 기준값 DTO 에 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yummygyudon committed Nov 25, 2023
1 parent 7c4dde1 commit c8d4669
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ public record VolunteerDetail(
@JsonProperty("hour")
int hour,
@JsonProperty("isApply")
boolean isApply
boolean isApply,
@JsonProperty("programType")
String type
) {
}

Expand All @@ -32,7 +34,9 @@ public record EmploymentDetail(
@JsonProperty("salary")
int salary,
@JsonProperty("isApply")
boolean isApply
boolean isApply,
@JsonProperty("programType")
String type
) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public record ProgramListResponse(
String registerAt,
String imageUrl,
String status,
String Region
String Region,
String type
) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public List<ProgramListResponse> getProgramListByProgramType(String programType)
formatToLocalDate(program.getRegisterAt()),
program.getImageUrl(),
program.getStatus().getValue(),
program.getRegion()
program.getRegion(),
program.getType()
))
.collect(Collectors.toList());
return programListResponses;
Expand All @@ -52,7 +53,8 @@ public List<ProgramListResponse> getStatusDoneProgramList() {
formatToLocalDate(program.getRegisterAt()),
program.getImageUrl(),
program.getStatus().getValue(),
program.getRegion()
program.getRegion(),
program.getType()
))
.collect(Collectors.toList());
return programListResponses;
Expand All @@ -70,7 +72,8 @@ public Object getProgramDetail(Long userId, Long programId) {
program.getOrganizationName(),
formatToLocalDate(program.getRegisterAt()),
program.getVolunteerHours(),
isApply
isApply,
program.getType()
);
}
if (program.getType().equals(EMPLOYMENT_TYPE)){
Expand All @@ -80,7 +83,8 @@ public Object getProgramDetail(Long userId, Long programId) {
program.getOrganizationName(),
formatToLocalDate(program.getRegisterAt()),
program.getSalary(),
isApply
isApply,
program.getType()
);
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import lombok.RequiredArgsConstructor;
import org.sopt.sopkerton.common.response.ApiResponse;
import org.sopt.sopkerton.user.domain.exception.UserSuccess;
import org.sopt.sopkerton.user.domain.exception.user.UserSuccess;
import org.sopt.sopkerton.user.dto.response.DetailView;
import org.sopt.sopkerton.user.dto.response.MainView;
import org.sopt.sopkerton.user.service.UserService;
Expand Down

0 comments on commit c8d4669

Please sign in to comment.