package com.remax.visualnovel.repository.api


import com.remax.visualnovel.api.service.DictService
import com.remax.visualnovel.entity.request.AIIDRequest
import com.remax.visualnovel.repository.api.base.BaseRepository
import javax.inject.Inject

/**
 * Created by HJW on 2022/11/15
 */
class DictRepository @Inject constructor(private val dictService: DictService) : BaseRepository() {

    suspend fun getChatBubbleList(aiId: String) = executeHttp {
        dictService.getChatBubbleList(AIIDRequest(aiId))
    }

    suspend fun getAIDict() = executeHttp {
        dictService.getAIDict()
    }

    suspend fun getGiftDict() = executeHttp(false) { dictService.getGiftDict() }

    suspend fun getAIChatModel() = executeHttp { dictService.getAIChatModel() }

}