크리에이터 채널 페이지 추가
This commit is contained in:
@@ -20,4 +20,28 @@ final class ExplorerRepository {
|
||||
func searchChannel(channel: String) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.searchChannel(channel: channel))
|
||||
}
|
||||
|
||||
func getCreatorProfile(id: Int) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getCreatorProfile(userId: id))
|
||||
}
|
||||
|
||||
func getFollowerList(userId: Int, page: Int, size: Int) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getFollowerList(userId: userId, page: page, size: size))
|
||||
}
|
||||
|
||||
func getCreatorProfileCheers(userId: Int, page: Int, size: Int) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getCreatorProfileCheers(userId: userId, page: page, size: size))
|
||||
}
|
||||
|
||||
func writeCheers(parentCheersId: Int?, creatorId: Int, content: String) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.writeCheers(parentCheersId: parentCheersId, creatorId: creatorId, content: content))
|
||||
}
|
||||
|
||||
func modifyCheers(cheersId: Int, content: String) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.modifyCheers(cheersId: cheersId, content: content))
|
||||
}
|
||||
|
||||
func writeCreatorNotice(notice: String) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.writeCreatorNotice(request: PostCreatorNoticeRequest(notice: notice)))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user