From 4ac378a892d8cb015e9cbd755f3a1716c0707f7a Mon Sep 17 00:00:00 2001 From: seongmin221 Date: Fri, 29 Dec 2023 00:54:12 +0900 Subject: [PATCH] [RENAME] AllFeedbackResponse to ReflectionFeedbackResponseDTO (#403) --- Maddori.Apple/Maddori.Apple.xcodeproj/project.pbxproj | 8 ++++---- ...Response.swift => ReflectionFeedbackResponseDTO.swift} | 2 +- .../New Group/UseCase/InProgressUseCase.swift | 6 +++--- .../Screen/Home/InProgress/InProgressViewController.swift | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) rename Maddori.Apple/Maddori.Apple/Data/DTO/ResponseDTO/{AllFeedBackResponse.swift => ReflectionFeedbackResponseDTO.swift} (89%) diff --git a/Maddori.Apple/Maddori.Apple.xcodeproj/project.pbxproj b/Maddori.Apple/Maddori.Apple.xcodeproj/project.pbxproj index d103266c..5c08237d 100644 --- a/Maddori.Apple/Maddori.Apple.xcodeproj/project.pbxproj +++ b/Maddori.Apple/Maddori.Apple.xcodeproj/project.pbxproj @@ -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 */; }; @@ -243,7 +243,7 @@ 39F52C5E2923338B00B19A77 /* MembersDetailResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MembersDetailResponse.swift; sourceTree = ""; }; 39F52C602923344C00B19A77 /* FeedBackContentResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedBackContentResponse.swift; sourceTree = ""; }; 39F52C622923357700B19A77 /* FeedBackInfoResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedBackInfoResponse.swift; sourceTree = ""; }; - 39F52C67292472EB00B19A77 /* AllFeedBackResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AllFeedBackResponse.swift; sourceTree = ""; }; + 39F52C67292472EB00B19A77 /* ReflectionFeedbackResponseDTO.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReflectionFeedbackResponseDTO.swift; sourceTree = ""; }; 39F52C69292473A800B19A77 /* ReflectionInfoResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReflectionInfoResponse.swift; sourceTree = ""; }; 39F52C6B292473EC00B19A77 /* AllReflectionResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AllReflectionResponse.swift; sourceTree = ""; }; 39F52C6D2924742E00B19A77 /* ReflectionResponse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReflectionResponse.swift; sourceTree = ""; }; @@ -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 */, @@ -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 */, diff --git a/Maddori.Apple/Maddori.Apple/Data/DTO/ResponseDTO/AllFeedBackResponse.swift b/Maddori.Apple/Maddori.Apple/Data/DTO/ResponseDTO/ReflectionFeedbackResponseDTO.swift similarity index 89% rename from Maddori.Apple/Maddori.Apple/Data/DTO/ResponseDTO/AllFeedBackResponse.swift rename to Maddori.Apple/Maddori.Apple/Data/DTO/ResponseDTO/ReflectionFeedbackResponseDTO.swift index 6ef254f5..237c039e 100644 --- a/Maddori.Apple/Maddori.Apple/Data/DTO/ResponseDTO/AllFeedBackResponse.swift +++ b/Maddori.Apple/Maddori.Apple/Data/DTO/ResponseDTO/ReflectionFeedbackResponseDTO.swift @@ -7,7 +7,7 @@ import Foundation -struct AllFeedBackResponse: Decodable { +struct ReflectionFeedbackResponseDTO: Decodable { // MARK: - getTeamAndUserFeedback let category: String? let userFeedback: [FeedBackResponse]? diff --git a/Maddori.Apple/Maddori.Apple/New Group/UseCase/InProgressUseCase.swift b/Maddori.Apple/Maddori.Apple/New Group/UseCase/InProgressUseCase.swift index 5ed916f7..8832c3eb 100644 --- a/Maddori.Apple/Maddori.Apple/New Group/UseCase/InProgressUseCase.swift +++ b/Maddori.Apple/Maddori.Apple/New Group/UseCase/InProgressUseCase.swift @@ -13,7 +13,7 @@ protocol InProgressUseCase { var reflectionID: Int { get set } var reflectionUserID: Int { get set } - func fetchFeedbacks(_ endpoint: InProgressEndPoint) throws -> AllFeedBackResponse + func fetchFeedbacks(_ endpoint: InProgressEndPoint) throws -> ReflectionFeedbackResponseDTO } final class InProgressUserCaseImpl: InProgressUseCase { @@ -26,10 +26,10 @@ final class InProgressUserCaseImpl: InProgressUseCase { self.reflectionUserID = reflectionUserID } - func fetchFeedbacks(_ endpoint: InProgressEndPoint) throws -> AllFeedBackResponse { + func fetchFeedbacks(_ endpoint: InProgressEndPoint) 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.self, from: data), + let decodedData = try? JSONDecoder().decode(BaseModel.self, from: data), let feedbackData = decodedData.detail else { throw NSError(domain: "api error", code: 0) } diff --git a/Maddori.Apple/Maddori.Apple/Screen/Home/InProgress/InProgressViewController.swift b/Maddori.Apple/Maddori.Apple/Screen/Home/InProgress/InProgressViewController.swift index d28f6422..c0818423 100644 --- a/Maddori.Apple/Maddori.Apple/Screen/Home/InProgress/InProgressViewController.swift +++ b/Maddori.Apple/Maddori.Apple/Screen/Home/InProgress/InProgressViewController.swift @@ -183,7 +183,7 @@ final class InProgressViewController: BaseViewController { AF.request(type.address, method: type.method, headers: type.headers - ).responseDecodable(of: BaseModel.self) { json in + ).responseDecodable(of: BaseModel.self) { json in if let json = json.value { guard let userFeedbackList = json.detail?.userFeedback, let teamFeedbackList = json.detail?.teamFeedback