Heimdall Gitea / Detect CI scope (pull_request) Successful in 6s
Heimdall Gitea / Build and tests (pull_request) Failing after 4m5s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Failing after 1s
20 lines
1.1 KiB
C#
20 lines
1.1 KiB
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);
|
|
Task<bool> ExistsAsync(Guid userId, CancellationToken ct);
|
|
Task<int> CountUsersAsync(CancellationToken ct);
|
|
Task<IReadOnlyDictionary<Guid, string>> GetLanguagesAsync(IReadOnlyCollection<Guid> userIds, CancellationToken ct);
|
|
Task<IReadOnlyDictionary<Guid, string?>> GetEmailsAsync(IReadOnlyCollection<Guid> userIds, CancellationToken ct);
|
|
Task<IReadOnlyList<GroupMemberResponse>> GetGroupMembersAsync(Guid groupId, CancellationToken ct);
|
|
Task<bool> IsAdminAsync(Guid userId, CancellationToken ct);
|
|
}
|