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);

}

上一篇:javascript – 一旦Rx.Observable发生错误,ValueChanges就会停止工作


下一篇:Ubuntu 12.04 搭建 Eclipse Android 开发环境(转)