IRequest
作者:互联网
package movie.bw.com.week3moni.model;
import java.util.HashMap;
import java.util.List;
import io.reactivex.Observable;
import movie.bw.com.week3moni.bean.Data;
import movie.bw.com.week3moni.bean.Result;
import movie.bw.com.week3moni.bean.Show;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
public interface IRquest {
@FormUrlEncoded
@POST("user/v1/login")
Observable<Result<Data>> login(@FieldMap HashMap<String,String>map);
@FormUrlEncoded
@POST("user/v1/register")
Observable<Result> register(@FieldMap HashMap<String,String>map);
@GET("order/verify/v1/findShoppingCart")
Observable<Result<List<Show>>> findShoppingCart(@Header("userId")String userId,@Header("sessionId")String sessionId);
}
标签:Observable,retrofit2,movie,http,bw,IRequest,import 来源: https://blog.csdn.net/ddg123_/article/details/90579780