支払い済みアイテムも取得対象に

This commit is contained in:
ろむねこ 2024-07-23 12:56:23 +09:00
parent 942e7b561b
commit 6a4ad4de05
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ public class KSActionsImpl implements KSActions {
@Override
public CompletableFuture<List<HistoryModel>> syncHistory(String childId) {
CompletableFuture<HistoryListResponse> callHistoryApi = CompletableFuture.supplyAsync(() -> {
Call<HistoryListResponse> call = kidShiftApiService.getHistory(childId);
Call<HistoryListResponse> call = kidShiftApiService.getHistory(childId, true); // TODO: containPaidを引数に
try {
Response<HistoryListResponse> response = call.execute();
if (!response.isSuccessful()) {

View File

@ -185,7 +185,7 @@ public interface KidShiftApiService {
@GET("/task/history/{childId}")
@Headers(AuthorizationInterceptor.HEADER_PLACEHOLDER)
Call<HistoryListResponse> getHistory(@Path("childId") String childId);
Call<HistoryListResponse> getHistory(@Path("childId") String childId, @Query("containPaid") boolean containPaid);
@POST("/task/history/{historyId}/paid")
@Headers(AuthorizationInterceptor.HEADER_PLACEHOLDER)