package com.yutou.biliapi.api;

import com.yutou.biliapi.bean.live.SpiBean;
import com.yutou.biliapi.bean.user.UserFollowingsBean;
import com.yutou.biliapi.bean.user.UserHomeInfoBean;
import com.yutou.biliapi.bean.user.UserInfoBean;
import com.yutou.common.okhttp.BaseBean;
import com.yutou.common.okhttp.HttpBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

import java.util.List;
import java.util.TreeMap;

public interface UserApi {
    @GET("/x/web-interface/nav")
    Call<HttpBody<UserInfoBean>> getUserInfo();


    @GET("/x/frontend/finger/spi")
    Call<HttpBody<SpiBean>> getFingerSpi();

    @GET("/x/relation/followings")
    Call<HttpBody<UserFollowingsBean>> getFollowings(
            @Query("vmid") String uid,
            @Query("order_type") String type,
            @Query("ps") int num,
            @Query("pn") int page

    );

    @GET("/x/space/wbi/acc/info")
    Call<HttpBody<UserHomeInfoBean>> getWbiAccInfo(
            @QueryMap TreeMap<String,Object> param
    );
}
