post get Retrofit with reference request header with the request Header

Ado, directly on the code
ps: data from the interface to play Android open API

  @FormUrlEncoded//收藏文章
    @POST("lg/collect/1165/json")
    fun postlike(@HeaderMap headers: Map<String, String>,@Field("id") id:String): Observable<ShoucangBeans>

    @GET("lg/collect/list/0/json")
    fun getshou(@HeaderMap headers: Map<String, String>):Observable<ShoucangLieBean>
Published 43 original articles · won praise 60 · views 6768

Guess you like

Origin blog.csdn.net/yuhang01/article/details/102834572