HttpService.java 641 Bytes
package com.huaheng.mes.https;

import java.util.ArrayList;
import java.util.List;

import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

public interface HttpService {

    //region 公共接口
    /**
     * 登录
     * @param body
     * @return
     */
    @POST(HttpConstant.LOGIN)
    Observable<ApiResponse<String>>login(@Body RequestBody body);

    /**
     * 登录
     * @param body
     * @return
     */
    @POST(HttpConstant.GET_TOKEN)
    Observable<ApiResponse<String>> getToken(@Body RequestBody body);





}