콘텐츠 상세 - 콘텐츠 고정/해제 기능 추가
This commit is contained in:
@@ -112,4 +112,12 @@ final class ContentRepository {
|
||||
func getContentRanking(page: Int, size: Int, sortType: String = "매출") -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.getContentRanking(page: page, size: size, sortType: sortType))
|
||||
}
|
||||
|
||||
func pinContent(contentId: Int) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.pinContent(contentId: contentId))
|
||||
}
|
||||
|
||||
func unpinContent(contentId: Int) -> AnyPublisher<Response, MoyaError> {
|
||||
return api.requestPublisher(.unpinContent(contentId: contentId))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user