Add update account information

This commit is contained in:
Nezumi
2023-03-17 11:40:08 +07:00
parent 3c6f837ab2
commit 11d32ad7c3
9 changed files with 106 additions and 24 deletions
@@ -20,9 +20,11 @@ import okhttp3.Response;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
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;
@@ -57,4 +59,7 @@ public interface FoodApiToken {
@GET("users/{userId}/loves")
Call<Foods> getListFavoriteFood(@Path("userId") int userId, @Query("pageNo") int pageNo, @Query("pageSize") int pageSize, @Query("sortBy") String sortBy, @Query("sortDir") String sortDir);
@PUT("users/{userId}")
Call<User> updateUser(@Path("userId") int userId, @Body User user);
}