콘텐츠 상세 - 크리에이터 팔로우와 알림설정

- 팔로잉 상태에서 알림 켜기/끄기 상태 추가
This commit is contained in:
Yu Sung
2024-09-23 16:39:18 +09:00
parent d3ab1507a4
commit ed4729ac11
4 changed files with 46 additions and 12 deletions

View File

@@ -87,10 +87,10 @@ final class ContentDetailViewModel: ObservableObject {
.store(in: &subscription)
}
func creatorFollow(userId: Int) {
func creatorFollow(creatorId: Int, follow: Bool = true, notify: Bool = true) {
isLoading = true
userRepository.creatorFollow(creatorId: userId)
userRepository.creatorFollow(creatorId: creatorId, follow: follow, notify: notify)
.sink { result in
switch result {
case .finished: