feat: 커뮤니티 댓글

- 유료 커뮤니티 구매시 비밀 댓글 쓰기 기능 추가
This commit is contained in:
Yu Sung
2025-06-13 19:18:37 +09:00
parent 522a177063
commit 24c97dbe51
13 changed files with 90 additions and 23 deletions

View File

@@ -14,7 +14,7 @@ enum CreatorCommunityApi {
case getCommunityPostList(creatorId: Int, page: Int, size: Int)
case getCommunityPostDetail(postId: Int)
case communityPostLike(postId: Int)
case createCommunityPostComment(comment: String, postId: Int, parentId: Int?)
case createCommunityPostComment(comment: String, postId: Int, parentId: Int?, isSecret: Bool)
case getCommunityPostCommentList(postId: Int, page: Int, size: Int)
case getCommentReplyList(commentId: Int, page: Int, size: Int)
case modifyComment(request: ModifyCommunityPostCommentRequest)
@@ -89,8 +89,8 @@ extension CreatorCommunityApi: TargetType {
let request = PostCommunityPostLikeRequest(postId: postId)
return .requestJSONEncodable(request)
case .createCommunityPostComment(let comment, let postId, let parentId):
let request = CreateCommunityPostCommentRequest(comment: comment, postId: postId, parentId: parentId)
case .createCommunityPostComment(let comment, let postId, let parentId, let isSecret):
let request = CreateCommunityPostCommentRequest(comment: comment, postId: postId, parentId: parentId, isSecret: isSecret)
return .requestJSONEncodable(request)
case .getCommunityPostCommentList(_, let page, let size):