| | |
| | | |
| | | import com.android.app_base.http.ResultData; |
| | | import com.application.zhangshi_app_android.bean.CaptchaImageBean; |
| | | import com.application.zhangshi_app_android.bean.FamilyAssetsResponseBean; |
| | | 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.HomeDevicesResponseBean; |
| | | import com.application.zhangshi_app_android.bean.HonorCollectionResponseBean; |
| | | import com.application.zhangshi_app_android.bean.IncomeAndExpensesResponseBean; |
| | | import com.application.zhangshi_app_android.bean.LittleDoctorResponseBean; |
| | | import com.application.zhangshi_app_android.bean.LoginRequestBean; |
| | | import com.application.zhangshi_app_android.bean.LoginResponseBean; |
| | | import com.application.zhangshi_app_android.bean.UploadFileResponseBean; |
| | | |
| | | import java.io.File; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import io.reactivex.Observable; |
| | | import okhttp3.MultipartBody; |
| | | import retrofit2.http.Body; |
| | | import retrofit2.http.DELETE; |
| | | import retrofit2.http.GET; |
| | | import retrofit2.http.Multipart; |
| | | import retrofit2.http.POST; |
| | | import retrofit2.http.PUT; |
| | | import retrofit2.http.Part; |
| | | import retrofit2.http.Path; |
| | | import retrofit2.http.Query; |
| | | import retrofit2.http.QueryMap; |
| | |
| | | * 获取家大事件 |
| | | */ |
| | | @GET("family/zfEvent/all") |
| | | Observable<ResultData<FamilyMemorabiliaResponseBean>> getFamilyMemorabilia(@QueryMap Map<String,Object> queryMap); |
| | | Observable<ResultData<FamilyMemorabiliaResponseBean>> getFamilyMemorabilia(@QueryMap Map<String,Object> paramsMap); |
| | | /** |
| | | * 增加家大事记 |
| | | */ |
| | |
| | | */ |
| | | @DELETE("/family/zfEvent/{ids}") |
| | | Observable<ResultData<String>> deleteFamilyMemorabilia(@Path("ids") String ids); |
| | | /** |
| | | * 修改家大事记 |
| | | */ |
| | | @PUT("/family/zfEvent") |
| | | Observable<ResultData<String>> updateFamilyMemorabilia(@Body FamilyMemorabiliaBean familyMemorabiliaBean); |
| | | |
| | | |
| | | /** |
| | | * 上传文件 |
| | | */ |
| | | @Multipart |
| | | @POST("/common/upload") |
| | | Observable<ResultData<UploadFileResponseBean>> uploadFile(@Part MultipartBody.Part file); |
| | | |
| | | /** |
| | | * 获取家庭资产 |
| | | */ |
| | | @GET("/family/property/all") |
| | | Observable<ResultData<FamilyAssetsResponseBean>> getFamilyAssets(@QueryMap Map<String, Object> paramsMap); |
| | | |
| | | /** |
| | | * 获取家庭设备 |
| | | */ |
| | | @GET("/zfEquipment/all") |
| | | Observable<ResultData<HomeDevicesResponseBean>> getHomeDevices(@QueryMap Map<String, Object> paramsMap); |
| | | |
| | | /** |
| | | * 获取家庭荣誉 |
| | | */ |
| | | @GET("/zfCollection/all") |
| | | Observable<ResultData<HonorCollectionResponseBean>> getHonorCollections(@QueryMap Map<String, Object> paramsMap); |
| | | |
| | | /** |
| | | * 获取小医生 |
| | | */ |
| | | @GET("/zfDoctor/all") |
| | | Observable<ResultData<LittleDoctorResponseBean>> getLittleDoctors(@QueryMap Map<String, Object> map); |
| | | |
| | | /** |
| | | * 获取收支 |
| | | */ |
| | | @GET("/zfEconomy/all") |
| | | Observable<ResultData<IncomeAndExpensesResponseBean>> getIncomeAndExpenses(@QueryMap Map<String, Object> map); |
| | | } |