Skip to content
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 @@ -131,7 +131,6 @@ public ApiResponse<JobPostingExtractResponse> extractJobPostingFromMultipart(
"jobPostingId": 10,
"companyId": 3,
"companyName": "삼성전자",
"companySize": "ENTERPRISE",
"detailClassificationId": 101,
"detailClassificationName": "Java/Spring",
"task": "백엔드 서비스 개발 및 운영\\nAPI 설계 및 성능 개선",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.jobdri.jobdri_api.domain.jobposting.dto.request;

import com.jobdri.jobdri_api.domain.company.entity.CompanySize;
import lombok.Builder;
import lombok.Getter;

Expand All @@ -13,5 +12,4 @@ public class JobPostingIngestCommand {
private String sourceUrl;
private byte[] imageBytes;
private String imageContentType;
private CompanySize companySize;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package com.jobdri.jobdri_api.domain.jobposting.dto.request;

import com.jobdri.jobdri_api.domain.company.entity.CompanySize;
import org.springframework.web.multipart.MultipartFile;

public record JobPostingIngestMultipartRequest(String rawText, String sourceUrl, MultipartFile image,
CompanySize companySize) {
public record JobPostingIngestMultipartRequest(String rawText, String sourceUrl, MultipartFile image) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static JobPostingResponse from(JobPosting jobPosting) {
.userId(jobPosting.getUser().getId())
.companyId(jobPosting.getCompany().getId())
.companyName(jobPosting.getCompany().getName())
.companySize(jobPosting.getCompany().getSize().name())
.companySize(jobPosting.getCompany().getSize() == null ? null : jobPosting.getCompany().getSize().name())
.detailClassificationId(jobPosting.getDetailClassification().getId())
.detailClassificationName(jobPosting.getDetailClassification().getDetailName())
.task(jobPosting.getTask())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ private JobPostingIngestCommand snapshot(User user, JobPostingIngestMultipartReq
.sourceUrl(request.sourceUrl())
.imageBytes(readBytes(request.image()))
.imageContentType(readContentType(request.image()))
.companySize(request.companySize())
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public JobPostingIngestResponse ingestAndCreate(User user, JobPostingIngestMulti
.userId(user.getId())
.rawText(request.rawText())
.sourceUrl(request.sourceUrl())
.companySize(request.companySize())
.build();
return ingestAndCreate(command);
}
Expand Down Expand Up @@ -81,7 +80,7 @@ public JobPostingIngestResponse ingestAndCreate(JobPostingIngestCommand command)
JobPostingGenerateResponse generated = jobPostingAiService.generateJobPosting(
new JobPostingGenerateRequest(
extracted.companyName(),
command.getCompanySize(),
null,
classification.detailClassificationId(),
extracted.rawText(),
"",
Expand All @@ -97,7 +96,7 @@ public JobPostingIngestResponse ingestAndCreate(JobPostingIngestCommand command)
resolveUser(command),
new JobPostingCreateRequest(
fallbackCompanyName(extracted.companyName()),
command.getCompanySize(),
null,
classification.detailClassificationId(),
generated.task(),
generated.requirements(),
Expand Down
Loading