ref: project structure

This commit is contained in:
2026-08-19 23:25:08 +07:00
parent 05a93cfc09
commit a1fe31cf70
155 changed files with 3339 additions and 1007 deletions
@@ -0,0 +1,16 @@
using mws.backend.dotnet.application.Common;
using mws.backend.dotnet.domain.Users;
namespace mws.backend.dotnet.application.Common.Repositories;
public interface IUserRepository : IRepository<User>
{
Task<User?> GetByIdAsync(Guid id, CancellationToken ct = default);
Task<User?> GetByIdWithRoleAsync(Guid id, CancellationToken ct = default);
Task<User?> GetByUsernameWithRoleAsync(string username, CancellationToken ct = default);
Task<bool> ExistsByUsernameAsync(string username, CancellationToken ct = default);
Task<bool> ExistsByRoleIdAsync(Guid roleId, CancellationToken ct = default);
Task<List<Guid>> GetRoleIdsAsync(Guid userId, CancellationToken ct = default);
Task<List<User>> SearchWithRoleAsync(string? term, int? take, CancellationToken ct = default);
Task<PagedResult<User>> SearchWithRolePagedAsync(string? term, int page, int pageSize, CancellationToken ct = default);
}