package com.remax.visualnovel.api.service

import com.remax.visualnovel.BuildConfig
import com.remax.visualnovel.entity.request.AIListRequest
import com.remax.visualnovel.entity.request.PageQuery
import com.remax.visualnovel.entity.request.SendGift
import com.remax.visualnovel.entity.response.MessageListOutput
import com.remax.visualnovel.entity.response.MessageStatOutput
import com.remax.visualnovel.entity.response.Pageable
import com.remax.visualnovel.entity.response.base.Response
import retrofit2.http.Body
import retrofit2.http.POST

interface MessageService {

    /**
     * 删除会话
     */
    @POST(BuildConfig.API_COW + "/web/ai-message/del")
    suspend fun deleteConversation(@Body request: AIListRequest): Response<Any>

    /**
     * 送礼物
     */
    @POST("/web/ai-user-gift/send")
    suspend fun sendGift(@Body dto: SendGift): Response<Any>

    /**
     * 未读消息统计
     */
    @POST(BuildConfig.API_PIGEON + "/web/message/stat")
    suspend fun getMessageStat(): Response<MessageStatOutput>

    /**
     * 系统通知列表
     */
    @POST(BuildConfig.API_PIGEON + "/web/message/list")
    suspend fun getMessageList(@Body dto: PageQuery): Response<Pageable<MessageListOutput>>

}