콘텐츠 댓글 리스트

- 유료 콘텐츠를 구매한 사람이 비밀댓글을 등록할 수 있는 기능 추가
This commit is contained in:
Yu Sung
2024-08-30 17:24:26 +09:00
parent fa849dd5b6
commit d1a90ad599
3 changed files with 28 additions and 2 deletions

View File

@@ -22,6 +22,8 @@ class AudioContentCommentListViewModel: ObservableObject {
@Published var totalCommentCount = 0
@Published var commentList = [GetAudioContentCommentListItem]()
@Published var isSecret = false
var audioContentId = 0
var page = 1
var isLast = false
@@ -84,7 +86,7 @@ class AudioContentCommentListViewModel: ObservableObject {
isLoading = true
repository.registerComment(audioContentId: audioContentId, comment: comment)
repository.registerComment(audioContentId: audioContentId, comment: comment, isSecret: isSecret)
.sink { result in
switch result {
case .finished: