Skip to content

Commit

Permalink
๐Ÿงฉ :: ๋””์ž์ธ ๋ฐ response ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
cyj513 committed Oct 28, 2024
1 parent c9c6b40 commit 907faae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ struct RecruitmentDetailResponseDTO: Decodable {
let companyProfileURL: String
let companyName: String
let areas: [AreaResponseDTO]
let requiredGrade: Int?
let requiredGrade: String?
let workingHours: String
let requiredLicenses: [String]?
let hiringProgress: [InterviewType]
Expand All @@ -27,7 +27,7 @@ struct RecruitmentDetailResponseDTO: Decodable {
companyProfileURL: String,
companyName: String,
areas: [AreaResponseDTO],
requiredGrade: Int?,
requiredGrade: String?,
workingHours: String,
requiredLicenses: [String]?,
hiringProgress: [InterviewType],
Expand Down Expand Up @@ -69,11 +69,12 @@ struct RecruitmentDetailResponseDTO: Decodable {
case companyProfileURL = "company_profile_url"
case companyName = "company_name"
case areas
case requiredGrade = "required_grade"
case requiredGrade = "additional_qualifications"
case requiredLicenses = "required_licenses"
case hiringProgress = "hiring_progress"
case trainPay = "train_pay"
case pay, benefits, military
case pay, benefits
case military = "military_support"
case submitDocument = "submit_document"
case workingHours = "working_hours"
case startDate = "start_date"
Expand All @@ -88,7 +89,7 @@ extension RecruitmentDetailResponseDTO {
func toDomain() -> RecruitmentDetailEntity {
var unwrappedRequiredGrade: String? {
guard let requiredGrade else { return nil }
return String(requiredGrade) + "% ์ด๋‚ด"
return requiredGrade + "% ์ด๋‚ด"
}
var recruitmentPeriod: String {
guard let startDate, let endDate else { return "์ƒ์‹œ ๋ชจ์ง‘" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class RecruitmentDetailViewController: BaseViewController<RecruitmentDeta
$0.axis = .vertical
}
private let recruitmentPeriodLabel = RecruitmentDetailLabel(title: "๋ชจ์ง‘๊ธฐ๊ฐ„")
private let militaryServiceLabel = RecruitmentDetailLabel(title: "์‚ฐ์—… ๊ธฐ๋Šฅ ์š”์› ๊ทผ๋ฌด ๊ฐ€๋Šฅ ์—ฌ๋ถ€")
private let militaryServiceLabel = RecruitmentDetailLabel(title: "์‚ฐ์—… ๊ธฐ๋Šฅ ์š”์› ๊ทผ๋ฌด ์—ฌ๋ถ€")
private let fieldTypeDetailStackView = FieldTypeDetailStackView()
private let certificateLabel = RecruitmentDetailLabel(title: "์ž๊ฒฉ์ฆ")
private let recruitmentProcessLabel = RecruitmentDetailLabel(title: "์„ ๋ฐœ ์ ˆ์ฐจ")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class WinterInternDetailViewController: BaseViewController<WinterInternDe
$0.axis = .vertical
}
private let recruitmentPeriodLabel = RecruitmentDetailLabel(title: "๋ชจ์ง‘๊ธฐ๊ฐ„")
private let militaryServiceLabel = RecruitmentDetailLabel(title: "์‚ฐ์—… ๊ธฐ๋Šฅ ์š”์› ๊ทผ๋ฌด ๊ฐ€๋Šฅ ์—ฌ๋ถ€")
private let militaryServiceLabel = RecruitmentDetailLabel(title: "์‚ฐ์—… ๊ธฐ๋Šฅ ์š”์› ๊ทผ๋ฌด ์—ฌ๋ถ€")
private let fieldTypeDetailStackView = FieldTypeDetailStackView()
private let certificateLabel = RecruitmentDetailLabel(title: "์ž๊ฒฉ์ฆ")
private let recruitmentProcessLabel = RecruitmentDetailLabel(title: "์„ ๋ฐœ ์ ˆ์ฐจ")
Expand Down

0 comments on commit 907faae

Please sign in to comment.