Skip to content

Commit

Permalink
[RENAME] AllFeedbackResponse to ReflectionFeedbackResponseDTO (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
seongmin221 committed Dec 28, 2023
1 parent 17adfda commit 4ac378a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Maddori.Apple/Maddori.Apple.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
39F52C5F2923338B00B19A77 /* MembersDetailResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39F52C5E2923338B00B19A77 /* MembersDetailResponse.swift */; };
39F52C612923344C00B19A77 /* FeedBackContentResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39F52C602923344C00B19A77 /* FeedBackContentResponse.swift */; };
39F52C632923357700B19A77 /* FeedBackInfoResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39F52C622923357700B19A77 /* FeedBackInfoResponse.swift */; };
39F52C68292472EB00B19A77 /* AllFeedBackResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39F52C67292472EB00B19A77 /* AllFeedBackResponse.swift */; };
39F52C68292472EB00B19A77 /* ReflectionFeedbackResponseDTO.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39F52C67292472EB00B19A77 /* ReflectionFeedbackResponseDTO.swift */; };
39F52C6A292473A800B19A77 /* ReflectionInfoResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39F52C69292473A800B19A77 /* ReflectionInfoResponse.swift */; };
39F52C6C292473EC00B19A77 /* AllReflectionResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39F52C6B292473EC00B19A77 /* AllReflectionResponse.swift */; };
39F52C6E2924742E00B19A77 /* ReflectionResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39F52C6D2924742E00B19A77 /* ReflectionResponse.swift */; };
Expand Down Expand Up @@ -243,7 +243,7 @@
39F52C5E2923338B00B19A77 /* MembersDetailResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MembersDetailResponse.swift; sourceTree = "<group>"; };
39F52C602923344C00B19A77 /* FeedBackContentResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedBackContentResponse.swift; sourceTree = "<group>"; };
39F52C622923357700B19A77 /* FeedBackInfoResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedBackInfoResponse.swift; sourceTree = "<group>"; };
39F52C67292472EB00B19A77 /* AllFeedBackResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AllFeedBackResponse.swift; sourceTree = "<group>"; };
39F52C67292472EB00B19A77 /* ReflectionFeedbackResponseDTO.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReflectionFeedbackResponseDTO.swift; sourceTree = "<group>"; };
39F52C69292473A800B19A77 /* ReflectionInfoResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReflectionInfoResponse.swift; sourceTree = "<group>"; };
39F52C6B292473EC00B19A77 /* AllReflectionResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AllReflectionResponse.swift; sourceTree = "<group>"; };
39F52C6D2924742E00B19A77 /* ReflectionResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReflectionResponse.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1062,7 +1062,7 @@
39F52C5E2923338B00B19A77 /* MembersDetailResponse.swift */,
39F52C602923344C00B19A77 /* FeedBackContentResponse.swift */,
39F52C622923357700B19A77 /* FeedBackInfoResponse.swift */,
39F52C67292472EB00B19A77 /* AllFeedBackResponse.swift */,
39F52C67292472EB00B19A77 /* ReflectionFeedbackResponseDTO.swift */,
39F52C69292473A800B19A77 /* ReflectionInfoResponse.swift */,
39F52C6B292473EC00B19A77 /* AllReflectionResponse.swift */,
39F52C6D2924742E00B19A77 /* ReflectionResponse.swift */,
Expand Down Expand Up @@ -1474,7 +1474,7 @@
39F52C53292330D200B19A77 /* MemberResponse.swift in Sources */,
39F52C6A292473A800B19A77 /* ReflectionInfoResponse.swift in Sources */,
D702278A297F99510027EF64 /* TeamManageViewController.swift in Sources */,
39F52C68292472EB00B19A77 /* AllFeedBackResponse.swift in Sources */,
39F52C68292472EB00B19A77 /* ReflectionFeedbackResponseDTO.swift in Sources */,
3975CEAF293EEDD6002D4F1A /* KeywordView.swift in Sources */,
39257DF128F93C2A00201E0B /* ImageLiteral.swift in Sources */,
391D38DB29C449DE00A6BFED /* TeamDetailMemberTableViewCell.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

struct AllFeedBackResponse: Decodable {
struct ReflectionFeedbackResponseDTO: Decodable {
// MARK: - getTeamAndUserFeedback
let category: String?
let userFeedback: [FeedBackResponse]?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protocol InProgressUseCase {
var reflectionID: Int { get set }
var reflectionUserID: Int { get set }

func fetchFeedbacks(_ endpoint: InProgressEndPoint<VoidModel>) throws -> AllFeedBackResponse
func fetchFeedbacks(_ endpoint: InProgressEndPoint<VoidModel>) throws -> ReflectionFeedbackResponseDTO
}

final class InProgressUserCaseImpl: InProgressUseCase {
Expand All @@ -26,10 +26,10 @@ final class InProgressUserCaseImpl: InProgressUseCase {
self.reflectionUserID = reflectionUserID
}

func fetchFeedbacks(_ endpoint: InProgressEndPoint<VoidModel>) throws -> AllFeedBackResponse {
func fetchFeedbacks(_ endpoint: InProgressEndPoint<VoidModel>) throws -> ReflectionFeedbackResponseDTO {
let request = AF.request(endpoint.address, method: endpoint.method, headers: endpoint.headers)
guard let data = request.data,
let decodedData = try? JSONDecoder().decode(BaseModel<AllFeedBackResponse>.self, from: data),
let decodedData = try? JSONDecoder().decode(BaseModel<ReflectionFeedbackResponseDTO>.self, from: data),
let feedbackData = decodedData.detail
else { throw NSError(domain: "api error", code: 0) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ final class InProgressViewController: BaseViewController {
AF.request(type.address,
method: type.method,
headers: type.headers
).responseDecodable(of: BaseModel<AllFeedBackResponse>.self) { json in
).responseDecodable(of: BaseModel<ReflectionFeedbackResponseDTO>.self) { json in
if let json = json.value {
guard let userFeedbackList = json.detail?.userFeedback,
let teamFeedbackList = json.detail?.teamFeedback
Expand Down

0 comments on commit 4ac378a

Please sign in to comment.