逆追加
This commit is contained in:
parent
51fe42ec05
commit
1cb47048e7
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user