Skip to content

Commit

Permalink
Merge pull request #262 from GSM-MSG/261-student-detail-response-dto-…
Browse files Browse the repository at this point in the history
…api-update

🔀 :: [#261] 학생 상세 정보 API 수정사항 반영
  • Loading branch information
baekteun authored Aug 28, 2023
2 parents 0b4057e + 14aff28 commit 1273f98
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1273f98

Please sign in to comment.