From 71f9e9c6cc7c3d9b7ad5e7c5d797f9c948efef4e Mon Sep 17 00:00:00 2001 From: baegteun Date: Mon, 28 Aug 2023 11:30:33 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=94=80=20::=20[#261]=20StudentDetailB?= =?UTF-8?q?yGuestResponse=20DTO=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DTO/Response/FetchStudentDetailByGuestResponseDTO.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByGuestResponseDTO.swift b/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByGuestResponseDTO.swift index a920163c..596ad6a7 100644 --- a/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByGuestResponseDTO.swift +++ b/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByGuestResponseDTO.swift @@ -27,6 +27,11 @@ public struct FetchStudentDetailByGuestResponseDTO: Decodable { self.projects = projects self.prizes = prizes } + + enum CodingKeys: String, CodingKey { + case name, introduce, major, techStacks, projects, prizes + case profileImg = "profileImgUrl" + } } public extension FetchStudentDetailByGuestResponseDTO { From 989c34bbf22a2e8565b0807226dc92dbf289d3fe Mon Sep 17 00:00:00 2001 From: baegteun Date: Mon, 28 Aug 2023 11:31:25 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=93=9D=20::=20[#261]=20FetchStudentDe?= =?UTF-8?q?tailbyStudent=20Response=20DTO=20=EC=88=98=EC=A0=95=EC=82=AC?= =?UTF-8?q?=ED=95=AD=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Response/FetchStudentDetailByStudentResponseDTO.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByStudentResponseDTO.swift b/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByStudentResponseDTO.swift index 3b64a26e..3cc79a39 100644 --- a/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByStudentResponseDTO.swift +++ b/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByStudentResponseDTO.swift @@ -13,6 +13,11 @@ public struct FetchStudentDetailByStudentResponseDTO: Decodable { public let techStacks: [String] public let projects: [ProjectResponseDTO] public let prizes: [PrizeResponseDTO] + + enum CodingKeys: String, CodingKey { + case name, introduce, grade, classNum, number, department, major, techStacks, projects, prizes + case profileImg = "profileImgUrl" + } } public extension FetchStudentDetailByStudentResponseDTO { From 2c2604045127e6b565aa4fc653ba3e4b10f443b8 Mon Sep 17 00:00:00 2001 From: baegteun Date: Mon, 28 Aug 2023 11:33:23 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=93=9D=20::=20[#261]=20StudentDetailB?= =?UTF-8?q?yTeacher=20Response=20DTO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Response/FetchStudentDetailByTeacherResponseDTO.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByTeacherResponseDTO.swift b/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByTeacherResponseDTO.swift index 8cb1c408..6325664c 100644 --- a/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByTeacherResponseDTO.swift +++ b/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByTeacherResponseDTO.swift @@ -23,6 +23,13 @@ public struct FetchStudentDetailByTeacherResponseDTO: Decodable { public let projects: [ProjectResponseDTO] public let prizes: [PrizeResponseDTO] + enum CodingKeys: String, CodingKey { + case name, introduce, portfolioUrl, grade, classNum, number, department, contactEmail, gsmAuthenticationScore + case formOfEmployment, regions,, militaryService, salary, languageCertificates, certificates + case major, techStacks, projects, prizes + case profileImg = "profileImgUrl" + } + public struct LanguageCertificateResponseDTO: Decodable { public let name: String public let score: String From 14aff2885cec74217be49e47b30479199300add9 Mon Sep 17 00:00:00 2001 From: baegteun Date: Mon, 28 Aug 2023 11:38:20 +0900 Subject: [PATCH 4/4] Update Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByTeacherResponseDTO.swift Co-authored-by: Sunghun Kim <81547954+kimsh153@users.noreply.github.com> --- .../DTO/Response/FetchStudentDetailByTeacherResponseDTO.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByTeacherResponseDTO.swift b/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByTeacherResponseDTO.swift index 6325664c..609c3e86 100644 --- a/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByTeacherResponseDTO.swift +++ b/Projects/Domain/StudentDomain/Sources/DTO/Response/FetchStudentDetailByTeacherResponseDTO.swift @@ -25,7 +25,7 @@ public struct FetchStudentDetailByTeacherResponseDTO: Decodable { enum CodingKeys: String, CodingKey { case name, introduce, portfolioUrl, grade, classNum, number, department, contactEmail, gsmAuthenticationScore - case formOfEmployment, regions,, militaryService, salary, languageCertificates, certificates + case formOfEmployment, regions, militaryService, salary, languageCertificates, certificates case major, techStacks, projects, prizes case profileImg = "profileImgUrl" }