package com.r11.tools.service;

import com.r11.tools.controller.RequestHistoryController;
import com.r11.tools.model.HistoryRequestModel;
import com.r11.tools.model.RequestHistory;
import com.r11.tools.model.RequestHistoryDTO;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * Spring service interface for {@link RequestHistoryController}
 * @author Rafał Żukowicz
 */
@Service
public interface RequestHistoryService {
    /**
     * Searches for {@link RequestHistory} objects between date brackets
     * @param historyRequestModel object containing required data for request
     * @return list of {@link RequestHistory}
     */
    List<RequestHistory> getHistoryRecordsBetweenDatesAndByUUIDAndMessageId(HistoryRequestModel historyRequestModel);
    void saveRequest(RequestHistoryDTO requestDTO);
}
