IUserRepository.cs 984 Bytes
Newer Older
Almouhannad's avatar
Almouhannad committed
1 2 3 4 5 6 7 8
using Domain.Entities.Identity.Users;
using Domain.Repositories.Base;
using Domain.Shared;

namespace Domain.Repositories;

public interface IUserRepository : IRepository<User>
{
9

Almouhannad's avatar
Almouhannad committed
10
    public Task<Result<User>> GetByUserNameFullAsync(string userName);
11

Almouhannad's avatar
Almouhannad committed
12
    #region Verify password
13
    public Task<Result<User?>> VerifyPasswordAsync(string userName, string password);
Almouhannad's avatar
Almouhannad committed
14
    #endregion
Almouhannad's avatar
Almouhannad committed
15

Almouhannad's avatar
Almouhannad committed
16
    #region Get doctor user by user name full
Almouhannad's avatar
Almouhannad committed
17
    public Task<Result<DoctorUser>> GetDoctorUserByUserNameFullAsync(string userName);
Almouhannad's avatar
Almouhannad committed
18 19 20 21

    #endregion

    #region Get receptionist user by user name full
Almouhannad's avatar
Almouhannad committed
22
    public Task<Result<ReceptionistUser>> GetReceptionistUserByUserNameFullAsync(string userName);
Almouhannad's avatar
Almouhannad committed
23 24 25 26 27 28 29 30 31 32 33 34

    #endregion

    #region Register doctor
    public Task<Result<DoctorUser>> RegisterDoctorAsync(DoctorUser doctorUser);
    #endregion

    #region Register receptionist
    public Task<Result<ReceptionistUser>> RegisterReceptionistAsync(ReceptionistUser receptionistUser);

    #endregion

Almouhannad's avatar
Almouhannad committed
35
}