package com.susion.boring.http.service; import com.susion.boring.http.BaseURL; import com.susion.boring.music.mvp.model.GetPlayListResult; import com.susion.boring.music.mvp.model.LyricResult; import com.susion.boring.music.mvp.model.MusicSearchResult; import com.susion.boring.music.mvp.model.PlayListDetail; import com.susion.boring.music.mvp.model.PlayListSong; import retrofit2.http.GET; import retrofit2.http.Query; import rx.Observable; /** * Created by susion on 17/1/20. */ public interface MusicServices { @GET(BaseURL.MUSIC_SEARCH) Observable<MusicSearchResult> searchMusic(@Query("s") String musicName, @Query("limit") int limit, @Query("type") String type, @Query("offset") int page); @GET(BaseURL.MUSIC_SEARCH_LYRIC + "/api/song/lyric?os=pc&kv=-1&tv=-1&lv=-1") Observable<LyricResult> getMusicLyric(@Query("id") String songId); @GET(BaseURL.MUSIC_PLAY_LIST + "?type=topPlayList&cat=全部") Observable<GetPlayListResult> getPlayList(@Query("offset") int offset, @Query("limit") int limit); @GET(BaseURL.MUSIC_PLAY_LIST_DETAIL + "?type=playlist") Observable<PlayListDetail> getPlayListDetail(@Query("id") int id); @GET(BaseURL.CLOUD_MUSIC_API_MUSICINGO + "?type=url") Observable<PlayListSong> getSongDetail(@Query("id") int id); }