添加系统日志状态接口

This commit is contained in:
2026-07-26 16:30:47 +08:00
parent 0b66f3d38d
commit b1064475e2
10 changed files with 234 additions and 20 deletions
@@ -2,6 +2,9 @@ package xtools.app.common.log.bus.service;
import xtools.boot.log.model.dto.LogBody;
import java.time.Instant;
import java.util.Map;
/**
* <p>Title : LogBusService</p>
* <p>Description : LogBusService</p>
@@ -29,4 +32,12 @@ public interface LogBusService {
*/
String total();
/**
* 获取指定日期的日志统计数据(按级别,从Redis读取)
*
* @param time 时间
* @return 日志级别编码 -> 数量
*/
Map<Integer, Long> getTotalByDay(Instant time);
}