13 lines
651 B
C#
13 lines
651 B
C#
using Heimdall.Application.DTOs;
|
|||
|
|
|
||
|
|
namespace Heimdall.Application.Common.Persistence;
|
||
|
|
|
||
|
|
public interface IUserRepository
|
||
|
|
{
|
||
|
|
Task<PagedResult<UserResponse>> GetPagedAsync(int page, int pageSize, CancellationToken ct);
|
||
|
|
Task<UserResponse?> GetByIdAsync(Guid id, CancellationToken ct);
|
||
|
|
Task<int> CountAdminUsersAsync(CancellationToken ct);
|
||
|
|
Task AddAuditLogAsync(Guid? userId, string action, string resourceType, string? resourceId, string? oldValue, string? newValue, CancellationToken ct);
|
||
|
|
Task SetUserSitesAsync(Guid userId, IList<Guid> siteIds, CancellationToken ct);
|
||
|
|
Task RemoveUserDataAsync(Guid userId, CancellationToken ct);
|
||
|
|
}
|