package com.adealink.weparty.location.datasource.remote

import com.adealink.frame.base.Rlt
import com.adealink.frame.network.data.Res
import com.adealink.weparty.location.data.GetCountryInfoRes
import com.adealink.weparty.location.data.ReportLocationReq
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface LocationHttpService {

    // TODO: 地理位置
    @POST("country/report_location")
    suspend fun reportLocation(@Body req: ReportLocationReq): Rlt<Res<Any>>

    @GET("country/get")
    suspend fun getUserCountryInfos(
        @Query("uids") uids: List<Long>,
        @Query("seqid") seqId: Long = System.currentTimeMillis(),
    ): Rlt<Res<GetCountryInfoRes>>

}