응원글 삭제 기능 추가

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

@@ -15,7 +15,7 @@ enum ExplorerApi {
case getFollowerList(userId: Int, page: Int, size: Int)
case getCreatorProfileCheers(userId: Int, page: Int, size: Int)
case writeCheers(parentCheersId: Int?, creatorId: Int, content: String)
case modifyCheers(cheersId: Int, content: String)
case modifyCheers(request: PutModifyCheersRequest)
case writeCreatorNotice(request: PostCreatorNoticeRequest)
case getCreatorProfileDonationRanking(userId: Int, page: Int, size: Int)
}
@@ -102,8 +102,7 @@ extension ExplorerApi: TargetType {
let request = PostWriteCheersRequest(parentId: parentCheersId, creatorId: creatorId, content: content)
return .requestJSONEncodable(request)
case .modifyCheers(let cheersId, let content):
let request = PutModifyCheersRequest(cheersId: cheersId, content: content)
case .modifyCheers(let request):
return .requestJSONEncodable(request)
case .writeCreatorNotice(let request):