콘텐츠 메인
- 인기 크리에이터 추가
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user