-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #352 from PLUB2022/feat/291-MyPage/ActiveMeeting
[FEAT] 마이페이지 > 활동중인 모임
- Loading branch information
Showing
14 changed files
with
532 additions
and
38 deletions.
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// MyFeedResponse.swift | ||
// PLUB | ||
// | ||
// Created by 김수빈 on 2023/05/06. | ||
// | ||
|
||
import Foundation | ||
|
||
struct MyFeedResponse: Codable { | ||
let plubbingInfo: PlubbingInfo | ||
let feedInfo: FeedInfo | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case plubbingInfo | ||
case feedInfo = "myFeedList" | ||
} | ||
} | ||
|
||
struct FeedInfo: Codable { | ||
let totalElements: Int | ||
let isLast: Bool | ||
let feedList: [FeedsContent] | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case totalElements | ||
case isLast = "last" | ||
case feedList = "content" | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// InquireMyFeedUseCase.swift | ||
// PLUB | ||
// | ||
// Created by 김수빈 on 2023/05/06. | ||
// | ||
|
||
import UIKit | ||
|
||
import RxSwift | ||
|
||
protocol InquireMyFeedUseCase { | ||
func execute(plubbingID: Int, cursorID: Int) -> Observable<MyFeedResponse> | ||
} | ||
|
||
final class DefaultInquireMyFeedUseCase: InquireMyFeedUseCase { | ||
|
||
func execute(plubbingID: Int, cursorID: Int) -> Observable<MyFeedResponse> { | ||
MyPageService.shared | ||
.inquireMyFeed(plubbingID: plubbingID, cursorID: cursorID) | ||
} | ||
} |
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.