mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-07-11 15:33:18 +08:00
feat(logManagement): implement log management service
This commit is contained in:
20
Services/Management/ILogManagementService.cs
Normal file
20
Services/Management/ILogManagementService.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Foxel.Models;
|
||||
using Foxel.Models.Response.Log;
|
||||
|
||||
namespace Foxel.Services.Management;
|
||||
|
||||
public interface ILogManagementService
|
||||
{
|
||||
Task<PaginatedResult<LogResponse>> GetLogsAsync(int page, int pageSize, string? searchQuery = null, LogLevel? level = null, DateTime? startDate = null, DateTime? endDate = null);
|
||||
Task<LogResponse> GetLogByIdAsync(int id);
|
||||
Task<bool> DeleteLogAsync(int id);
|
||||
Task<BatchDeleteResult> BatchDeleteLogsAsync(List<int> ids);
|
||||
Task<int> ClearLogsByDateAsync(DateTime beforeDate);
|
||||
Task<int> ClearAllLogsAsync();
|
||||
|
||||
/// <summary>
|
||||
/// 获取日志统计信息
|
||||
/// </summary>
|
||||
/// <returns>日志统计数据</returns>
|
||||
Task<LogStatistics> GetLogStatisticsAsync();
|
||||
}
|
||||
Reference in New Issue
Block a user