feat: 커뮤니티 댓글
- 유료 커뮤니티 구매시 비밀 댓글 쓰기 기능 추가
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user