feat(explorer): 크리에이터 상세정보 다이얼로그와 SNS 링크를 추가한다
This commit is contained in:
@@ -13,6 +13,7 @@ enum ExplorerApi {
|
||||
case getExplorer
|
||||
case searchChannel(channel: String)
|
||||
case getCreatorProfile(userId: Int, isAdultContentVisible: Bool)
|
||||
case getCreatorDetail(userId: Int)
|
||||
case getFollowerList(userId: Int, page: Int, size: Int)
|
||||
case getCreatorProfileCheers(userId: Int, page: Int, size: Int)
|
||||
case writeCheers(parentCheersId: Int?, creatorId: Int, content: String)
|
||||
@@ -39,6 +40,9 @@ extension ExplorerApi: TargetType {
|
||||
|
||||
case .getCreatorProfile(let userId, _):
|
||||
return "/explorer/profile/\(userId)"
|
||||
|
||||
case .getCreatorDetail(let userId):
|
||||
return "/explorer/profile/\(userId)/detail"
|
||||
|
||||
case .getCreatorProfileDonationRanking(let userId, _, _, _):
|
||||
return "/explorer/profile/\(userId)/donation-rank"
|
||||
@@ -62,7 +66,7 @@ extension ExplorerApi: TargetType {
|
||||
|
||||
var method: Moya.Method {
|
||||
switch self {
|
||||
case .getExplorer, .searchChannel, .getCreatorProfile, .getFollowerList, .getCreatorProfileCheers, .getCreatorProfileDonationRanking, .getCreatorRank:
|
||||
case .getExplorer, .searchChannel, .getCreatorProfile, .getCreatorDetail, .getFollowerList, .getCreatorProfileCheers, .getCreatorProfileDonationRanking, .getCreatorRank:
|
||||
return .get
|
||||
|
||||
case .writeCheers, .writeCreatorNotice:
|
||||
@@ -75,7 +79,7 @@ extension ExplorerApi: TargetType {
|
||||
|
||||
var task: Task {
|
||||
switch self {
|
||||
case .getExplorer, .getCreatorRank:
|
||||
case .getExplorer, .getCreatorRank, .getCreatorDetail:
|
||||
return .requestPlain
|
||||
|
||||
case .searchChannel(let channel):
|
||||
|
||||
Reference in New Issue
Block a user