feat: add Logs
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace mws.backend.dotnet.application.Common;
|
||||
|
||||
public interface ICurrentUser
|
||||
{
|
||||
Guid? UserId { get; }
|
||||
string? Username { get; }
|
||||
string? IpAddress { get; }
|
||||
string? UserAgent { get; }
|
||||
}
|
||||
@@ -10,6 +10,8 @@ public interface IUnitOfWork
|
||||
IDocumentRepository Documents { get; }
|
||||
IRoleRepository Roles { get; }
|
||||
IMasterDataRepository MasterData { get; }
|
||||
IActionLogRepository ActionLogs { get; }
|
||||
ILoginLogRepository LoginLogs { get; }
|
||||
|
||||
Task<int> SaveChangesAsync(CancellationToken ct = default);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
using mws.backend.dotnet.application.Audit;
|
||||
using mws.backend.dotnet.application.Common;
|
||||
using mws.backend.dotnet.domain.Audit;
|
||||
|
||||
namespace mws.backend.dotnet.application.Common.Repositories;
|
||||
|
||||
public interface IActionLogRepository : IRepository<ActionLog>
|
||||
{
|
||||
Task<PagedResult<ActionLog>> SearchAsync(ActionLogFilter filter, int page, int pageSize, CancellationToken ct = default);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using mws.backend.dotnet.application.Audit;
|
||||
using mws.backend.dotnet.application.Common;
|
||||
using mws.backend.dotnet.domain.Audit;
|
||||
|
||||
namespace mws.backend.dotnet.application.Common.Repositories;
|
||||
|
||||
public interface ILoginLogRepository : IRepository<LoginLog>
|
||||
{
|
||||
Task<PagedResult<LoginLog>> SearchAsync(LoginLogFilter filter, int page, int pageSize, CancellationToken ct = default);
|
||||
}
|
||||
Reference in New Issue
Block a user