크리에이터 채널 페이지 추가

This commit is contained in:
Yu Sung
2023-08-11 18:33:48 +09:00
parent a167840162
commit a8338e6fea
69 changed files with 4087 additions and 10 deletions

View File

@@ -64,4 +64,20 @@ final class UserRepository {
func updatePushToken(pushToken: String) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.updatePushToken(request: PushTokenUpdateRequest(pushToken: pushToken)))
}
func creatorFollow(creatorId: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.creatorFollow(request: CreatorFollowRequest(creatorId: creatorId)))
}
func creatorUnFollow(creatorId: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.creatorUnFollow(request: CreatorFollowRequest(creatorId: creatorId)))
}
func memberBlock(userId: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.memberBlock(request: MemberBlockRequest(blockMemberId: userId)))
}
func memberUnBlock(userId: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.memberUnBlock(request: MemberBlockRequest(blockMemberId: userId)))
}
}