package com.adealink.weparty.profile.datasource.remote

import com.adealink.frame.base.Rlt
import com.adealink.frame.network.data.Res
import com.adealink.weparty.profile.search.data.SearchAllReq
import com.adealink.weparty.profile.search.data.SearchAllRes
import com.adealink.weparty.profile.search.data.SearchRoomReq
import com.adealink.weparty.profile.search.data.SearchRoomRes
import com.adealink.weparty.profile.search.data.SearchUserReq
import com.adealink.weparty.profile.search.data.SearchUserRes
import retrofit2.http.Body
import retrofit2.http.POST

interface SearchHttpService {

    /**
     * 混合搜索
     */
    @POST("search/mixed/list")
    suspend fun searchAll(@Body req: SearchAllReq): Rlt<Res<SearchAllRes>>

    /**
     * 搜索用户
     */
    @POST("playmate/search")
    suspend fun searchUser(@Body req: SearchUserReq): Rlt<Res<SearchUserRes>>

    /**
     * 搜索房间
     */
    @POST("live/room/search")
    suspend fun searchRoom(@Body req: SearchRoomReq): Rlt<Res<SearchRoomRes>>

}