package com.cmeeting.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cmeeting.pojo.UserAccessRecord;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface IUserAccessRecordService extends IService<UserAccessRecord> {
    Page<Map<String, String>> statistics(String search, Date startTime, Date endTime, Integer current, Integer size);

    List<Map<String, String>> statisticsByCompany(Date startTime, Date endTime, List<String> deptMap);

    void exportUserAccessRecord(List<Map<String, String>> statistics, List<String> dateList, HttpServletResponse response);

    void exportUserAccessRecordByCompany(List<Map<String, String>> data, List<String> dateList, HttpServletResponse response) throws IOException;
}
