Skip to content
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

Merged
merged 7 commits into from
Dec 24, 2022

Conversation

L-j-h-c
Copy link
Contributor

@L-j-h-c L-j-h-c commented Dec 21, 2022

🌴 PR 요약

🌱 작업한 브랜치

🌱 PR Point

미션 리스트 뷰 API 및 비즈니스 로직 구현했습니다.

네트워크 베이스를 조금 수정했습니다. header에 특이하게 UserId가 들어가기 때문에 해당 부분 열거형을 추가했습니다.

미션 디테일 뷰 및 랭킹 뷰, 랭킹 미션 리스트로의 전환 로직을 구현했습니다.

코드 개선을 위한 피드백 언제나 환영입니다!

📮 관련 이슈

@L-j-h-c L-j-h-c added Feat 새로운 기능 구현 준호🏅 labels Dec 21, 2022
@L-j-h-c L-j-h-c self-assigned this Dec 21, 2022
Copy link
Member

@yangsubinn yangsubinn left a 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]?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 이거 서버쪽에서 뺀다구 전달받았는디 아직 결과값에 일부 들어오고 있나보네여...

Comment on lines +54 to +57
public enum HeaderType {
case json
case jsonUserId(userId: Int)
case userId(userId: Int)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

야무지네요..

Comment on lines +107 to +109
func toListDetailSceneType() -> ListDetailSceneType {
return (self.isCompleted == true) ? .edit : .none
}
Copy link
Member

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
Copy link
Member

@lsj8706 lsj8706 left a 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 {
Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let userId = userId ?? 1 과 같은 의미인가요..?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lsj8706 그렇네요 엘비스 연산자가 쓰기 싫어서 그래왔는데 그냥 쓰는것도 좋아 보이는군요...

Copy link
Member

@devxsby devxsby left a 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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@L-j-h-c L-j-h-c merged commit 93a36a3 into sopt-makers:develop Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feat 새로운 기능 구현 size/XL 준호🏅
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 미션 리스트 뷰 Domain 및 Data 구현
4 participants