feat(chat): 채팅 쿼터 광고 충전을 추가한다

This commit is contained in:
Yu Sung
2026-04-30 14:23:15 +09:00
parent 714ad459b0
commit 5823f6ddb2
10 changed files with 423 additions and 133 deletions

View File

@@ -55,8 +55,17 @@ class ChatRoomRepository {
return talkApi.requestPublisher(.getChatQuotaStatus(roomId: roomId))
}
func purchaseChatQuota(roomId: Int) -> AnyPublisher<Response, MoyaError> {
return talkApi.requestPublisher(.purchaseChatQuota(roomId: roomId, request: ChatQuotaPurchaseRequest()))
func purchaseChatQuota(
roomId: Int,
chargeType: ChatRoomQuotaChargeType = .can,
canOption: ChatRoomQuotaCanOption? = nil
) -> AnyPublisher<Response, MoyaError> {
return talkApi.requestPublisher(
.purchaseChatQuota(
roomId: roomId,
request: ChatQuotaPurchaseRequest(chargeType: chargeType, canOption: canOption)
)
)
}
func resetChatRoom(roomId: Int) -> AnyPublisher<Response, MoyaError> {