12345678910111213141516171819202122232425262728 |
- package com.cooleshow.musicmerge.api;
- import com.cooleshow.base.data.net.BaseResponse;
- import com.cooleshow.musicmerge.bean.MusicDataBean;
- import io.reactivex.rxjava3.core.Observable;
- import okhttp3.RequestBody;
- import okhttp3.ResponseBody;
- import retrofit2.Call;
- import retrofit2.http.Body;
- import retrofit2.http.GET;
- import retrofit2.http.Headers;
- import retrofit2.http.POST;
- import retrofit2.http.Path;
- import retrofit2.http.Streaming;
- import retrofit2.http.Url;
- /**
- * Author by pq, Date on 2022/12/19.
- */
- public interface Api {
- @POST("{group_name}" + "/userMusic/save")
- Observable<BaseResponse<Object>> save(@Body RequestBody body, @Path("group_name") String group_name);
- @GET("{group_name}" + "/userMusic/detail/{id}")
- Observable<BaseResponse<MusicDataBean>> getDetail(@Path("group_name") String group_name, @Path("id") String id);
- }
|