콘텐츠 메인

- 인기 크리에이터 추가
This commit is contained in:
Yu Sung
2025-01-05 18:18:40 +09:00
parent d2d65b0405
commit 47bc905e4d
5 changed files with 219 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import Foundation
import Moya
enum ExplorerApi {
case getCreatorRank
case getExplorer
case searchChannel(channel: String)
case getCreatorProfile(userId: Int)
@@ -27,6 +28,9 @@ extension ExplorerApi: TargetType {
var path: String {
switch self {
case .getCreatorRank:
return "/explorer/creator-rank"
case .getExplorer:
return "/explorer"
@@ -58,7 +62,7 @@ extension ExplorerApi: TargetType {
var method: Moya.Method {
switch self {
case .getExplorer, .searchChannel, .getCreatorProfile, .getFollowerList, .getCreatorProfileCheers, .getCreatorProfileDonationRanking:
case .getExplorer, .searchChannel, .getCreatorProfile, .getFollowerList, .getCreatorProfileCheers, .getCreatorProfileDonationRanking, .getCreatorRank:
return .get
case .writeCheers, .writeCreatorNotice:
@@ -71,7 +75,7 @@ extension ExplorerApi: TargetType {
var task: Task {
switch self {
case .getExplorer:
case .getExplorer, .getCreatorRank:
return .requestPlain
case .searchChannel(let channel):