-
Notifications
You must be signed in to change notification settings - Fork 15
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] #28 - 미션 리스트 뷰 비즈니스 로직 구현 #53
[Feat] #28 - 미션 리스트 뷰 비즈니스 로직 구현 #53
Conversation
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.
고생하셨습니다아 🙇♀️
public let id: Int | ||
public let title: String | ||
public let level: Int | ||
public let profileImage: [String]? |
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.
아 이거 서버쪽에서 뺀다구 전달받았는디 아직 결과값에 일부 들어오고 있나보네여...
public enum HeaderType { | ||
case json | ||
case jsonUserId(userId: Int) | ||
case userId(userId: Int) |
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.
야무지네요..
func toListDetailSceneType() -> ListDetailSceneType { | ||
return (self.isCompleted == true) ? .edit : .none | ||
} |
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.
캄사합니다
…feature/sopt-makers#28-MissionListBusiness # Conflicts: # SOPT-Stamp-iOS/Projects/Modules/Network/Sources/Foundation/BaseAPI.swift # SOPT-Stamp-iOS/Projects/SOPT-Stamp-iOS/Sources/Application/SceneDelegate.swift
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.
수고하셨습니다 😄
case levelOne | ||
case levelTwo | ||
case levelThree | ||
public enum StarViewLevel: Int { |
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.
👍👍
} | ||
} | ||
|
||
extension MissionListRepository: MissionListRepositoryInterface { | ||
|
||
public func fetchMissionList(type: MissionListFetchType, userId: Int?) -> AnyPublisher<[MissionListModel], Error> { | ||
let userId: Int = (userId != nil) |
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.
let userId = userId ?? 1
과 같은 의미인가요..?
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.
@lsj8706 그렇네요 엘비스 연산자가 쓰기 싫어서 그래왔는데 그냥 쓰는것도 좋아 보이는군요...
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.
고생선배. 🙇🏻♀️
@@ -26,7 +27,9 @@ public class MissionListVC: UIViewController { | |||
} | |||
private var cancelBag = CancelBag() | |||
|
|||
lazy var dataSource: UICollectionViewDiffableDataSource<MissionListSection, AnyHashable>! = nil | |||
private var missionTypeMenuSelected = CurrentValueSubject<MissionListFetchType, Error>(.all) |
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.
👍🏻
🌴 PR 요약
🌱 작업한 브랜치
🌱 PR Point
미션 리스트 뷰 API 및 비즈니스 로직 구현했습니다.
네트워크 베이스를 조금 수정했습니다. header에 특이하게 UserId가 들어가기 때문에 해당 부분 열거형을 추가했습니다.
미션 디테일 뷰 및 랭킹 뷰, 랭킹 미션 리스트로의 전환 로직을 구현했습니다.
코드 개선을 위한 피드백 언제나 환영입니다!
📮 관련 이슈