package com.r11.tools.service;

import com.r11.tools.controller.RequestHistoryController;
import com.r11.tools.model.RequestHistory;
import com.r11.tools.model.RequestHistoryDTO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Spring service interface for {@link RequestHistoryController}
 * @author Rafał Żukowicz
 */
@Service
public interface RequestHistoryService {
    /**
     * Searches for {@link RequestHistory} objects between date brackets
     * @param uuid user uuid
     * @return list of {@link RequestHistory}
     */
    List<RequestHistory> getHistoryRecordsByUUID(String uuid);
    void saveRequest(RequestHistoryDTO requestDTO);
}
