From e7bebddea49ba8fd89872a673ae5f312006dcd59 Mon Sep 17 00:00:00 2001 From: Jisu Kim Date: Wed, 20 Nov 2024 00:43:50 +0900 Subject: [PATCH] =?UTF-8?q?[WEAV-134]=20=EA=B0=99=EC=9D=80=ED=9A=8C?= =?UTF-8?q?=EC=82=AC=20=EC=86=8C=EA=B0=9C=20=EC=95=88=EB=B0=9B=EA=B8=B0=20?= =?UTF-8?q?=EC=98=B5=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProfileInput/AuthCompany/AuthCompanyIntent.swift | 1 + .../Model/Sources/SignUp/Domain/SignUpFormDomain.swift | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Projects/Features/SignUp/Sources/ProfileInput/AuthCompany/AuthCompanyIntent.swift b/Projects/Features/SignUp/Sources/ProfileInput/AuthCompany/AuthCompanyIntent.swift index 26ab10a..f1fb2c0 100644 --- a/Projects/Features/SignUp/Sources/ProfileInput/AuthCompany/AuthCompanyIntent.swift +++ b/Projects/Features/SignUp/Sources/ProfileInput/AuthCompany/AuthCompanyIntent.swift @@ -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) } } diff --git a/Projects/Model/Model/Sources/SignUp/Domain/SignUpFormDomain.swift b/Projects/Model/Model/Sources/SignUp/Domain/SignUpFormDomain.swift index 18d1d5f..3898ce0 100644 --- a/Projects/Model/Model/Sources/SignUp/Domain/SignUpFormDomain.swift +++ b/Projects/Model/Model/Sources/SignUp/Domain/SignUpFormDomain.swift @@ -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? { @@ -110,7 +111,8 @@ public struct SignUpDreamPartnerDomain { end: upperBirthYearGap ), jobOccupations: jobOccupations, - preferDistance: distanceType.toDto + preferDistance: distanceType.toDto, + allowSameCompany: allowSameCompany ) } @@ -118,12 +120,14 @@ public struct SignUpDreamPartnerDomain { 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 } }