Skip to content

Commit

Permalink
🦷 :: (#493) μžμž˜ν•œ μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
alsdl0629 committed Dec 10, 2023
1 parent e631f86 commit f241955
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import team.retum.jobis.domain.application.model.ApplicationAttachment;
import team.retum.jobis.domain.application.model.AttachmentType;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public class AttachmentResponse {
private String url;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,21 @@
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import team.retum.jobis.domain.company.model.CompanyType;

import java.util.List;

@Getter
@NoArgsConstructor(force = true)
@AllArgsConstructor
public class TeacherQueryCompaniesResponse {

private final List<TeacherQueryCompanyResponse> companies;

@Getter
@NoArgsConstructor(force = true)
@AllArgsConstructor
@Builder
public static class TeacherQueryCompanyResponse {
private final Long companyId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,23 @@
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import team.retum.jobis.domain.company.model.CompanyType;
import team.retum.jobis.domain.recruitment.model.RecruitStatus;

import java.time.LocalDate;
import java.util.List;

@Getter
@NoArgsConstructor(force = true)
@AllArgsConstructor
public class TeacherQueryRecruitmentsResponse {

private final List<TeacherRecruitmentResponse> recruitments;

@Getter
@NoArgsConstructor(force = true)
@AllArgsConstructor
@Builder
public static class TeacherRecruitmentResponse {
private long id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public class ApplicationWebAdapter {
@CacheEvict(cacheNames = COMPANY, allEntries = true)
}
)
@CacheEvict(allEntries = true)
@ResponseStatus(HttpStatus.CREATED)
@PostMapping("/{recruitment-id}")
public void createApplication(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

import com.querydsl.core.annotations.QueryProjection;
import lombok.Getter;
import lombok.NoArgsConstructor;
import team.retum.jobis.domain.company.spi.vo.TeacherEmployCompaniesVO;

@Getter
@NoArgsConstructor
public class QueryTeacherEmployCompaniesVO extends TeacherEmployCompaniesVO {

@QueryProjection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public TeacherQueryEmployCompaniesResponse queryEmployCompanies(
return teacherQueryEmployCompaniesUseCase.execute(companyName, type, year, page - 1);
}

@Cacheable
@GetMapping("/employment/count")
public TotalPageCountResponse queryEmployCompaniesCount(
@RequestParam(value = "company_name", required = false) String companyName,
Expand Down

0 comments on commit f241955

Please sign in to comment.