package com.webclip.base;


import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.Url;

public interface ApiService {
    String URL = "https://api.liulao.top/";


    @GET("api/system/applicationConf")
    Observable<Result<DataInfo>> geUrlNew(@Query("userId") int userId);


    /**
     * 統計下載量
     */
    @PUT("api/statistics/downloads")
    Observable<Result> downloadNumbers(@Body Map<String, Object> map);

    /**
     * 每日活跃统计
     */
    @PUT("api/statistics/use")
    Observable<Result> totalTongJi(@Body Map<String, Object> map);

    /**
     * 统计通知
     */
    @POST("api/push/statistics")
    Observable<Result> totalNotify(@Body Map<String, Object> map);


    /**
     * 获取通知列表
     * @param userid
     * @param page
     * @param size
     * @return
     */
    @GET("api/push/pushRecords")
    Observable<Result<ResultDataInfo<MessageInfo>>> getNotifyList(@Query("userId") int userid, @Query("page") int page, @Query("size") int size);


}
