逆追加

This commit is contained in:
ろむねこ 2024-07-08 10:54:01 +09:00
parent 51fe42ec05
commit 1cb47048e7
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

@ -34,4 +34,14 @@ public class HistoryModelConverter { // TODO: JavaDoc
}
return historyModelList;
}
public static HistoryListResponse historyModelListToHistoryListResponse(List<HistoryModel> historyModelList) {
HistoryListResponse historyListResponse = new HistoryListResponse();
List<HistoryResponse> historyResponseList = new ArrayList<>();
for (HistoryModel historyModel : historyModelList) {
historyResponseList.add(historyModelToHistoryResponse(historyModel));
}
historyListResponse.setList(historyResponseList);
return historyListResponse;
}
}