package com.application.zhangshi_app_android.data.source.http; import com.android.app_base.http.ResultData; import com.application.zhangshi_app_android.bean.CaptchaImageBean; import com.application.zhangshi_app_android.bean.FamilyMemorabiliaBean; import com.application.zhangshi_app_android.bean.FamilyMemorabiliaRequestBean; import com.application.zhangshi_app_android.bean.FamilyMemorabiliaResponseBean; import com.application.zhangshi_app_android.bean.LoginRequestBean; import com.application.zhangshi_app_android.bean.LoginResponseBean; import java.util.List; import java.util.Map; import io.reactivex.Observable; import retrofit2.http.Body; import retrofit2.http.DELETE; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.PUT; import retrofit2.http.Path; import retrofit2.http.Query; import retrofit2.http.QueryMap; /** * @author Ljj * @date 2023.03.01. 21:13 * @desc 网络请求 service */ public interface ApiService { /** * 获取验证码图片 */ @GET("/captchaImage") Observable> getCaptchaImage(); /** * 登录 */ @POST("/login") Observable> login(@Body LoginRequestBean loginRequestBean); /** * 注册 */ @POST("/register") Observable> register(@Body LoginRequestBean loginRequestBean); /** * 获取家大事件 */ @GET("family/zfEvent/all") Observable> getFamilyMemorabilia(@QueryMap Map queryMap); /** * 增加家大事记 */ @POST("/family/zfEvent") Observable> addFamilyMemorabilia(@Body FamilyMemorabiliaBean familyMemorabiliaBean); /** * 删除家大事记 */ @DELETE("/family/zfEvent/{ids}") Observable> deleteFamilyMemorabilia(@Path("ids") String ids); /** * 修改家大事记 */ @PUT("/family/zfEvent") Observable> updateFamilyMemorabilia(@Body FamilyMemorabiliaBean familyMemorabiliaBean); }