feat(chat): 채팅 쿼터 광고 충전을 추가한다
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user