Skip to content

Commit

Permalink
Merge pull request #44 from Student-Center/feature/WEAV-134
Browse files Browse the repository at this point in the history
[WEAV-134] 같은회사 소개 안받기 옵션 API 추가
  • Loading branch information
jisu15-kim authored Nov 21, 2024
2 parents c20ec95 + e7bebdd commit 09f68d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ extension AuthCompanyIntent: AuthCompanyIntent.Intentable {
Task {
var payload = input.input
payload.profile?.companyId = state.selectedCompany?.id
payload.dreamPartner?.allowSameCompany = state.sameCompanyMatchingAvailable
await pushNextView(payload: payload)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public struct SignUpDreamPartnerDomain {
public var lowerBirthYearGap: Int?
public var upperBirthYearGap: Int?
public var jobOccupations: [String]
public var allowSameCompany: Bool?
public var distanceType: DreamPartnerDistanceType?

var toDto: Components.Schemas.UserDesiredPartner? {
Expand All @@ -110,20 +111,23 @@ public struct SignUpDreamPartnerDomain {
end: upperBirthYearGap
),
jobOccupations: jobOccupations,
preferDistance: distanceType.toDto
preferDistance: distanceType.toDto,
allowSameCompany: allowSameCompany
)
}

public init(
lowerBirthYearGap: Int? = nil,
upperBirthYearGap: Int? = nil,
jobOccupations: [String],
distanceType: DreamPartnerDistanceType? = nil
distanceType: DreamPartnerDistanceType? = nil,
allowSameCompany: Bool? = nil
) {
self.lowerBirthYearGap = lowerBirthYearGap
self.upperBirthYearGap = upperBirthYearGap
self.jobOccupations = jobOccupations
self.distanceType = distanceType
self.allowSameCompany = allowSameCompany
}
}

Expand Down

0 comments on commit 09f68d0

Please sign in to comment.