package cn.common.service;

import cn.common.interaction.req.log.PlatformApiLogReq;
import cn.common.interaction.resp.log.ApiLogStatisticsResp;
import cn.common.interaction.resp.log.PlatformApiLogResp;
import cn.common.interaction.resp.page.Pagination;

import java.util.List;

/**
 * @author Singer create by singer email:singer-coder@qq.com
 * @projectName health-platform-api
 * @Description: 系统日志Service
 * @date 2020-01-10
 */
public interface PlatformApiLogService {

    /**
     * 根据参数统计访问量
     * @author: create by singer - Singer email:singer-coder@qq.com
     * @date 2022/4/11
     * @param req 查询参数
     * @return
     */
    List<ApiLogStatisticsResp> statisticsVisitCount(PlatformApiLogReq req);

    /**
     * 分页查询系统日志
     * @author: create by singer - Singer email:singer-coder@qq.com
     * @date 2020-01-10
     * @param platformApiLogReq 系统API日志查询请求Req
     * @return Pagination
     */
    Pagination<PlatformApiLogResp> queryByPage(PlatformApiLogReq platformApiLogReq);

}
