package com.joker.fourfun.net;

import com.joker.fourfun.model.ArticleOne;
import com.joker.fourfun.model.Movie;
import com.joker.fourfun.model.Music;
import com.joker.fourfun.model.Picture;
import com.joker.fourfun.model.Zhihu;

import java.util.List;

import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by joker on 2016/11/27.
 */

public interface UserService {
    @GET("PicZhihuServlet")
    Flowable<HttpResult<List<Zhihu>>> zhihuPic();

    @GET("PicOneServlet")
    Flowable<HttpResult<List<Picture>>> picOne(@Query("date") String date);

    @GET("PicOneServlet")
    Flowable<HttpResult<List<Picture>>> picOneNum(@Query("num") String num);

    @GET("ArOneServlet")
    Flowable<HttpResult<List<ArticleOne>>> article(@Query("num") int num);

    @GET("MusicServlet")
    Flowable<HttpResult<List<Music>>> music(@Query("date") String date);

    @GET("MovieServlet")
    Flowable<HttpResult<List<Movie>>> movie(@Query("date") String date);
}
@@ -184,16 +184,95 @@
 icture;%0A
+import com.joker.fourfun.model.LoginInfo;%0Aimport com.joker.fourfun.model.User;%0A
 import c
@@ -324,16 +324,38 @@
 il.List;
+%0Aimport java.util.Map;
 %0A%0Aimport
@@ -389,55 +389,232 @@
 ort 
-retrofit2.http.GET;%0Aimport retrofit2.http.Query
+okhttp3.ResponseBody;%0Aimport retrofit2.http.Body;%0Aimport retrofit2.http.GET;%0Aimport retrofit2.http.POST;%0Aimport retrofit2.http.Query;%0Aimport retrofit2.http.QueryMap;%0Aimport retrofit2.http.Streaming;%0Aimport retrofit2.http.Url
 ;%0A%0A/
@@ -1165,32 +1165,116 @@
  String date);%0A%0A
+    @Streaming%0A    @GET%0A    Flowable%3CResponseBody%3E downloadMusic(@Url String url);%0A%0A
     @GET(%22MovieS
@@ -1354,10 +1354,210 @@
 g date);
+%0A%0A    @GET(%22login%22)%0A    Flowable%3CHttpResult%3CList%3CLoginInfo%3E%3E%3E login(@QueryMap Map%3CString, String%3E userInfo);%0A%0A    @POST(%22register%22)%0A    Flowable%3CHttpResult%3CList%3CLoginInfo%3E%3E%3E register(@Body User user);
 %0A%7D

add login and register interface