初步完成Log的增删改查
This commit is contained in:
@@ -49,6 +49,11 @@ public interface IRepositoryManager : IDisposable
|
||||
/// </summary>
|
||||
IUserRepository Users { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取Nlog日志仓储的实例。
|
||||
/// </summary>
|
||||
INlogRepository Nlogs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 初始化数据库
|
||||
/// </summary>
|
||||
|
||||
15
DMS.Core/Interfaces/Repositories/INlogRepository.cs
Normal file
15
DMS.Core/Interfaces/Repositories/INlogRepository.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using DMS.Core.Models;
|
||||
|
||||
namespace DMS.Core.Interfaces.Repositories;
|
||||
|
||||
/// <summary>
|
||||
/// Nlog日志仓储接口,定义了对Nlog实体的特定数据访问方法。
|
||||
/// 继承自通用仓储接口 IBaseRepository<Nlog>。
|
||||
/// </summary>
|
||||
public interface INlogRepository : IBaseRepository<Nlog>
|
||||
{
|
||||
// 可以在此处添加 Nlog 特定的查询方法,例如:
|
||||
// Task<List<Nlog>> GetLogsByLevelAsync(string level);
|
||||
// Task<List<Nlog>> GetLogsByDateRangeAsync(DateTime startDate, DateTime endDate);
|
||||
// Task<List<Nlog>> SearchLogsAsync(string searchTerm);
|
||||
}
|
||||
Reference in New Issue
Block a user