package com.adealink.weparty.playmate.datasource.remote

import com.adealink.frame.base.Rlt
import com.adealink.frame.network.data.Res
import com.adealink.weparty.playmate.comment.data.PlaymateCommentReq
import com.adealink.weparty.playmate.comment.data.PlaymateCommentRes
import com.adealink.weparty.playmate.data.PlaymateCategoryRes
import com.adealink.weparty.playmate.data.PlaymateDetailReq
import com.adealink.weparty.playmate.data.PlaymateDetailRes
import com.adealink.weparty.playmate.data.PlaymateListReq
import com.adealink.weparty.playmate.data.PlaymateListRes
import com.adealink.weparty.playmate.data.UserPlaymateCategoryReq
import com.adealink.weparty.playmate.data.UserPlaymateCategoryRes
import retrofit2.http.Body
import retrofit2.http.POST

interface PlaymateHttpService {

    /**
     * 获取所有品类
     */
    @POST("biz/categorys")
    suspend fun getAllCategory(): Rlt<Res<PlaymateCategoryRes>>


    @POST("skill/list")
    suspend fun getPlaymateList(@Body req: PlaymateListReq): Rlt<Res<PlaymateListRes>>

    @POST("skill/detail")
    suspend fun getPlaymateDetail(@Body req: PlaymateDetailReq): Rlt<Res<PlaymateDetailRes>>

    @POST("skill/user/goods")
    suspend fun getUserPlaymateCategory(@Body req: UserPlaymateCategoryReq): Rlt<Res<UserPlaymateCategoryRes>>

    @POST("skill/user/goods")
    suspend fun getPlaymateComment(@Body req: PlaymateCommentReq): Rlt<Res<PlaymateCommentRes>>

}