Api.java 862 B

12345678910111213141516171819202122232425262728
  1. package com.cooleshow.musicmerge.api;
  2. import com.cooleshow.base.data.net.BaseResponse;
  3. import com.cooleshow.musicmerge.bean.MusicDataBean;
  4. import io.reactivex.rxjava3.core.Observable;
  5. import okhttp3.RequestBody;
  6. import okhttp3.ResponseBody;
  7. import retrofit2.Call;
  8. import retrofit2.http.Body;
  9. import retrofit2.http.GET;
  10. import retrofit2.http.Headers;
  11. import retrofit2.http.POST;
  12. import retrofit2.http.Path;
  13. import retrofit2.http.Streaming;
  14. import retrofit2.http.Url;
  15. /**
  16. * Author by pq, Date on 2022/12/19.
  17. */
  18. public interface Api {
  19. @POST("{group_name}" + "/userMusic/save")
  20. Observable<BaseResponse<Object>> save(@Body RequestBody body, @Path("group_name") String group_name);
  21. @GET("{group_name}" + "/userMusic/detail/{id}")
  22. Observable<BaseResponse<MusicDataBean>> getDetail(@Path("group_name") String group_name, @Path("id") String id);
  23. }