Manage address function + improve performance app

This commit is contained in:
Nezumi
2023-03-20 16:24:43 +07:00
parent 30b4e9338c
commit 7df8e7dd4f
15 changed files with 326 additions and 130 deletions
@@ -71,4 +71,10 @@ public interface FoodApiToken {
@POST("users/{userId}/addresses")
Call<CustomResponse> createAddressUser(@Path("userId") int userId, @Body Address address);
@PUT("users/{userId}/addresses/{addressId}")
Call<CustomResponse> editAddressUser(@Path("userId") int userId, @Path("addressId") int addressId, @Body Address address);
@DELETE("users/{userId}/addresses/{addressId}")
Call<CustomResponse> deleteAddressUser(@Path("userId") int userId, @Path("addressId") int addressId);
}