| | |
| | | import com.auto.lyric.data.ActiveResult; |
| | | import com.auto.lyric.ui.collect.CollectListResult; |
| | | |
| | | import java.util.Map; |
| | | |
| | | import io.reactivex.Observable; |
| | | import retrofit2.http.Field; |
| | | import retrofit2.http.FieldMap; |
| | | import retrofit2.http.FormUrlEncoded; |
| | | import retrofit2.http.POST; |
| | | |
| | |
| | | */ |
| | | @FormUrlEncoded |
| | | @POST("index.php?route=lrc/favorites/getFavoritesList") |
| | | Observable<CollectListResult> getCollectList(); |
| | | Observable<CollectListResult> getCollectList(@FieldMap Map<String,String> obj); |
| | | |
| | | /** |
| | | * 歌词详情 |
| | |
| | | */ |
| | | @FormUrlEncoded |
| | | @POST("index.php?route=lrc/favorites/getLrc") |
| | | Observable<CollectListResult> getLrcDetail(@Field("lrc_id") int lrc_id); |
| | | Observable<CollectListResult> getLrcDetailFromCollect(@Field("lrc_id") int lrc_id); |
| | | |
| | | /** |
| | | * 删除歌词 |
| | |
| | | */ |
| | | @FormUrlEncoded |
| | | @POST("index.php?route=lrc/favorites/delLrc") |
| | | Observable<CollectListResult> removeLrc(@Field("lrc_id") int lrc_id); |
| | | Observable<CollectListResult> removeLrcFromCollect(@Field("lrc_id") int lrc_id); |
| | | |
| | | /** |
| | | * 添加歌词歌词 |
| | | * @return |
| | | */ |
| | | @FormUrlEncoded |
| | | @POST("index.php?route=lrc/favorites/delLrc") |
| | | Observable<CollectListResult> addLrc(@Field("lrc_title") String lrc_title,@Field("lrc_text") String lrc_text); |
| | | @POST("index.php?route=lrc/favorites/addLrc") |
| | | Observable<CollectListResult> addLrcToCollect(@Field("lrc_title") String lrc_title,@Field("lrc_text") String lrc_text,@FieldMap Map<String,String> obj); |
| | | |
| | | /** |
| | | * 激活软件 |
| | | * @param activeKey |
| | | * @param ip |
| | | * @param random |
| | | * @param time |
| | | * @param userId |
| | | * @param sign |
| | | * @return |
| | | */ |
| | | @FormUrlEncoded |
| | | @POST("index.php?route=lrc/login_check") |
| | | Observable<ActiveResult> loginCheck(@Field("activeKey") String activeKey, @Field("ip") String ip, @Field("random") String random, |
| | | @Field("timeStamp") long time, @Field("userId") int userId, @Field("sign") String sign); |
| | | Observable<ActiveResult> loginCheck(@FieldMap Map<String,String> obj); |
| | | |
| | | /** |
| | | * 激活软件 |
| | | * @param activeKey |
| | | * @param ip |
| | | * @param random |
| | | * @param time |
| | | * @param userId |
| | | * @param sign |
| | | * @return |
| | | */ |
| | | @FormUrlEncoded |
| | | @POST("index.php?route=lrc/register") |
| | | Observable<ActiveResult> register(@Field("activeKey") String activeKey, @Field("ip") String ip,@Field("phoneID") String phoneID, @Field("random") String random, |
| | | @Field("timeStamp") long time, @Field("userID") int userId, @Field("sign") String sign); |
| | | Observable<ActiveResult> register(@FieldMap Map<String,String> obj); |
| | | |
| | | } |