응원글 삭제 기능 추가

This commit is contained in:
Yu Sung
2023-09-09 00:02:39 +09:00
parent b31933715d
commit 5d95c0f1c9
10 changed files with 227 additions and 131 deletions

View File

@@ -37,8 +37,9 @@ final class ExplorerRepository {
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 modifyCheers(cheersId: Int, content: String?, isActive: Bool?) -> AnyPublisher<Response, MoyaError> {
let request = PutModifyCheersRequest(cheersId: cheersId, content: content, isActive: isActive)
return api.requestPublisher(.modifyCheers(request: request))
}
func writeCreatorNotice(notice: String) -> AnyPublisher<Response, MoyaError> {