refactor: 重构访问统计接口
This commit is contained in:
@@ -2,6 +2,7 @@ package com.youlai.boot.system.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.youlai.boot.system.model.bo.VisitCount;
|
||||
import com.youlai.boot.system.model.bo.VisitStatsBO;
|
||||
import com.youlai.boot.system.model.entity.Log;
|
||||
import com.youlai.boot.system.model.query.LogPageQuery;
|
||||
import com.youlai.boot.system.model.vo.LogPageVO;
|
||||
@@ -13,7 +14,7 @@ import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 系统日志 数据库访问层
|
||||
* 系统日志数据访问层
|
||||
*
|
||||
* @author Ray
|
||||
* @since 2.10.0
|
||||
@@ -23,10 +24,6 @@ public interface LogMapper extends BaseMapper<Log> {
|
||||
|
||||
/**
|
||||
* 获取日志分页列表
|
||||
*
|
||||
* @param page
|
||||
* @param queryParams
|
||||
* @return
|
||||
*/
|
||||
Page<LogPageVO> getLogPage(Page<LogPageVO> page, LogPageQuery queryParams);
|
||||
|
||||
@@ -35,7 +32,6 @@ public interface LogMapper extends BaseMapper<Log> {
|
||||
*
|
||||
* @param startDate 开始日期 yyyy-MM-dd
|
||||
* @param endDate 结束日期 yyyy-MM-dd
|
||||
* @return
|
||||
*/
|
||||
List<VisitCount> getPvCounts(String startDate, String endDate);
|
||||
|
||||
@@ -44,23 +40,18 @@ public interface LogMapper extends BaseMapper<Log> {
|
||||
*
|
||||
* @param startDate 开始日期 yyyy-MM-dd
|
||||
* @param endDate 结束日期 yyyy-MM-dd
|
||||
* @return
|
||||
*/
|
||||
List<VisitCount> getIpCounts(String startDate, String endDate);
|
||||
|
||||
/**
|
||||
* 获取浏览量(PV)统计数据
|
||||
*
|
||||
* @return
|
||||
* 获取浏览量(PV)统计
|
||||
*/
|
||||
VisitStatsVO getPvStats();
|
||||
VisitStatsBO getPvStats();
|
||||
|
||||
/**
|
||||
* 获取IP统计数据
|
||||
*
|
||||
* @return
|
||||
* 获取访问IP统计
|
||||
*/
|
||||
VisitStatsVO getIpStats();
|
||||
VisitStatsBO getUvStats();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user