-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] 모임 상세 화면 약속 분기 처리 #343
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1e3f6a6
chore/#334 폴더 순서 변경 및 파일 추가
JinUng41 3b64a61
style/#334 디자인 명세에 따른 Orange 색상으로 변경
JinUng41 f147f77
style/#334 밑줄 세그먼트 컨트롤 구현
JinUng41 ae30fd5
refactor/#334 요청 파라미터 전달을 위한 네트워크 수정
JinUng41 2dc5807
refactor/#334 인코딩 방식 변경
JinUng41 0ea3f94
style/#334 오토레이아웃 수정
JinUng41 651b653
refactor/#334 API 명세에 따른 수정
JinUng41 83d96ab
feat/#334 내가 속한 약속과 모임의 모든 약속 분기 처리 구현
JinUng41 a2833da
Merge branch 'suyeon' into feat/#334-meetingInfo-promise-logic
JinUng41 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,9 @@ final class MeetingService { | |
} | ||
} | ||
|
||
|
||
// MARK: - MeetingInfoServiceProtocol | ||
|
||
extension MeetingService: MeetingInfoServiceProtocol { | ||
func fetchMeetingInfo(with meetingID: Int) async throws -> ResponseBodyDTO<MeetingInfoModel>? { | ||
return try await request(with: .fetchMeetingInfo(meetingID: meetingID)) | ||
|
@@ -51,8 +54,14 @@ extension MeetingService: MeetingInfoServiceProtocol { | |
return try await request(with: .fetchMeetingMember(meetingID: meetingID)) | ||
} | ||
|
||
func fetchMeetingPromiseList(with meetingID: Int) async throws -> ResponseBodyDTO<MeetingPromisesModel>? { | ||
return try await request(with: .fetchMeetingPromiseList(meetingID: meetingID)) | ||
func fetchMeetingPromiseList( | ||
with meetingID: Int, | ||
isParticipant: Bool? | ||
) async throws -> ResponseBodyDTO<MeetingPromisesModel>? { | ||
guard let isParticipant else { | ||
return try await request(with: .fetchMeetingPromiseList(meetingID: meetingID)) | ||
} | ||
return try await request(with: .fetchParticipatedPromiseList(meetingID: meetingID, isParticipant: isParticipant)) | ||
} | ||
|
||
func exitMeeting(with meetingID: Int) -> Single<ResponseBodyDTO<EmptyModel>> { | ||
|
@@ -175,114 +184,27 @@ final class MockMeetingInfoService: MeetingInfoServiceProtocol { | |
return ResponseBodyDTO(success: true, data: mockData, error: nil) | ||
} | ||
|
||
func fetchMeetingPromiseList(with meetingID: Int) -> ResponseBodyDTO<MeetingPromisesModel>? { | ||
func fetchMeetingPromiseList( | ||
with meetingID: Int, | ||
isParticipant: Bool? | ||
) async throws -> ResponseBodyDTO<MeetingPromisesModel>? { | ||
let mockData = MeetingPromisesModel( | ||
promises: [ | ||
MeetingPromise( | ||
promiseID: 1, | ||
name: "꾸물 리프레시 데이", | ||
dDay: 0, | ||
time: "PM 2:00", | ||
placeName: "DMC역" | ||
), | ||
MeetingPromise( | ||
promiseID: 2, | ||
name: "꾸물 잼얘 나이트", | ||
dDay: 10, | ||
time: "PM 6:00", | ||
placeName: "홍대입구" | ||
), | ||
MeetingPromise( | ||
promiseID: 3, | ||
name: "친구 생일 파티", | ||
dDay: 5, | ||
time: "PM 7:00", | ||
placeName: "강남역" | ||
), | ||
MeetingPromise( | ||
promiseID: 4, | ||
name: "주말 산책", | ||
dDay: 3, | ||
time: "AM 10:00", | ||
placeName: "서울숲" | ||
), | ||
MeetingPromise( | ||
promiseID: 5, | ||
name: "프로젝트 미팅", | ||
dDay: 1, | ||
time: "AM 9:00", | ||
placeName: "삼성역" | ||
), | ||
MeetingPromise( | ||
promiseID: 6, | ||
name: "독서 모임", | ||
dDay: 7, | ||
time: "PM 3:00", | ||
placeName: "합정역" | ||
), | ||
MeetingPromise( | ||
promiseID: 7, | ||
name: "헬스클럽 모임", | ||
dDay: 2, | ||
time: "AM 8:00", | ||
placeName: "신촌역" | ||
), | ||
MeetingPromise( | ||
promiseID: 8, | ||
name: "영화 관람", | ||
dDay: 4, | ||
time: "PM 8:00", | ||
placeName: "잠실역" | ||
), | ||
MeetingPromise( | ||
promiseID: 9, | ||
name: "저녁 식사", | ||
dDay: 6, | ||
time: "PM 7:30", | ||
placeName: "이태원역" | ||
), | ||
MeetingPromise( | ||
promiseID: 10, | ||
name: "아침 조깅", | ||
dDay: 14, | ||
time: "AM 6:00", | ||
placeName: "한강공원" | ||
), | ||
MeetingPromise( | ||
promiseID: 11, | ||
name: "커피 브레이크", | ||
dDay: 8, | ||
time: "PM 4:00", | ||
placeName: "을지로입구" | ||
), | ||
MeetingPromise( | ||
promiseID: 12, | ||
name: "스터디 그룹", | ||
dDay: 12, | ||
time: "PM 5:00", | ||
placeName: "강남역" | ||
), | ||
MeetingPromise( | ||
promiseID: 13, | ||
name: "뮤직 페스티벌", | ||
dDay: 9, | ||
time: "PM 2:00", | ||
placeName: "난지공원" | ||
), | ||
MeetingPromise( | ||
promiseID: 14, | ||
name: "낚시 여행", | ||
dDay: 11, | ||
time: "AM 5:00", | ||
placeName: "속초항" | ||
), | ||
MeetingPromise( | ||
promiseID: 15, | ||
name: "가족 모임", | ||
dDay: 13, | ||
time: "PM 1:00", | ||
placeName: "광화문역" | ||
) | ||
MeetingPromise(promiseID: 1,name: "꾸물 리프레시 데이",dDay: 0,time: "PM 2:00",placeName: "DMC역"), | ||
MeetingPromise(promiseID: 2,name: "꾸물 잼얘 나이트",dDay: 10,time: "PM 6:00",placeName: "홍대입구"), | ||
MeetingPromise(promiseID: 3,name: "친구 생일 파티",dDay: 5,time: "PM 7:00",placeName: "강남역"), | ||
MeetingPromise(promiseID: 4,name: "주말 산책",dDay: 3,time: "AM 10:00",placeName: "서울숲"), | ||
MeetingPromise(promiseID: 5,name: "프로젝트 미팅",dDay: 1,time: "AM 9:00",placeName: "삼성역"), | ||
MeetingPromise(promiseID: 6,name: "독서 모임",dDay: 7,time: "PM 3:00",placeName: "합정역"), | ||
MeetingPromise(promiseID: 7,name: "헬스클럽 모임",dDay: 2,time: "AM 8:00",placeName: "신촌역"), | ||
MeetingPromise(promiseID: 8,name: "영화 관람",dDay: 4,time: "PM 8:00",placeName: "잠실역"), | ||
MeetingPromise(promiseID: 9,name: "저녁 식사",dDay: 6,time: "PM 7:30",placeName: "이태원역"), | ||
MeetingPromise(promiseID: 10,name: "아침 조깅",dDay: 14,time: "AM 6:00",placeName: "한강공원"), | ||
MeetingPromise(promiseID: 11,name: "커피 브레이크",dDay: 8,time: "PM 4:00",placeName: "을지로입구"), | ||
MeetingPromise(promiseID: 12,name: "스터디 그룹",dDay: 12,time: "PM 5:00",placeName: "강남역"), | ||
MeetingPromise(promiseID: 13,name: "뮤직 페스티벌",dDay: 9,time: "PM 2:00",placeName: "난지공원"), | ||
MeetingPromise(promiseID: 14, name: "낚시 여행", dDay: 11, time: "AM 5:00", placeName: "속초항"), | ||
MeetingPromise(promiseID: 15, name: "가족 모임", dDay: 13, time: "PM 1:00", placeName: "광화문역") | ||
Comment on lines
+193
to
+207
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이거 혹시 한번에 개행 없애는 방법 아시나요? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 나중에 직접 알려드릴게요~ |
||
] | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿!