renamed folders
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using app.Model;
|
||||
using app.Share.Common;
|
||||
|
||||
namespace app.Interface.Repositories
|
||||
{
|
||||
public interface IAuthUserRepository
|
||||
{
|
||||
Task<List<AuthUser>> GetAllAuthUsersAsync();
|
||||
Task<(List<AuthUser>, int totalCount)> GetFilteredAuthUsersAsync(AuthUserSelectCriterion selectCriterion);
|
||||
Task<AuthUser> GetAuthUserByEMailAsync(string email);
|
||||
Task<AuthUser> FindAuthUserByEMailAsync(string email);
|
||||
Task<AuthUser> FindAuthUserByEMailConfirmationIdAsync(string id);
|
||||
Task<AuthUser> FindAuthUserByEMailForgotPasswordIdAsync(string id);
|
||||
void AddAuthUser(AuthUser user);
|
||||
Task DeleteAuthUserByEMailAsync(string email);
|
||||
void DeleteAuthUser(AuthUser user);
|
||||
}
|
||||
}
|
11
backend/app/app.Interface/Repositories/IUnitOfWork.cs
Normal file
11
backend/app/app.Interface/Repositories/IUnitOfWork.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace app.Interface.Repositories {
|
||||
public interface IUnitOfWork : IDisposable {
|
||||
int SaveChanges();
|
||||
Task<int> SaveChangesAsync();
|
||||
}
|
||||
}
|
28
backend/app/app.Interface/Services/IAuthService.cs
Normal file
28
backend/app/app.Interface/Services/IAuthService.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Security.Cryptography;
|
||||
using System.Threading.Tasks;
|
||||
using app.Model.DTOs;
|
||||
using app.Share.Common;
|
||||
|
||||
namespace app.Interface.Services
|
||||
{
|
||||
public interface IAuthService
|
||||
{
|
||||
Task<List<AuthUserDTO>> GetAllAuthUsersAsync();
|
||||
Task<GetFilteredAuthUsersResultDTO> GetFilteredAuthUsersAsync(AuthUserSelectCriterion selectCriterion);
|
||||
Task<AuthUserDTO> GetAuthUserByEMailAsync(string email);
|
||||
Task<AuthUserDTO> FindAuthUserByEMailAsync(string email);
|
||||
Task<long> AddAuthUserAsync(AuthUserDTO userDTO);
|
||||
Task<bool> ConfirmEMail(string id);
|
||||
Task<TokenDTO> Login(AuthUserDTO userDTO);
|
||||
Task ForgotPassword(string email);
|
||||
Task<EMailStringDTO> ConfirmForgotPassword(string id);
|
||||
Task ResetPassword(ResetPasswordDTO rpDTO);
|
||||
Task UpdateUser(UpdateUserDTO updateUserDTO);
|
||||
Task UpdateUserAsAdmin(AdminUpdateUserDTO updateUserDTO);
|
||||
Task<TokenDTO> Refresh(TokenDTO tokenDTO);
|
||||
Task Revoke(TokenDTO tokenDTO);
|
||||
Task DeleteAuthUserByEMailAsync(string email);
|
||||
Task DeleteAuthUserAsync(AuthUserDTO userDTO);
|
||||
}
|
||||
}
|
12
backend/app/app.Interface/app.Interface.csproj
Normal file
12
backend/app/app.Interface/app.Interface.csproj
Normal file
@@ -0,0 +1,12 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\app.Model\app.Model.csproj"/>
|
||||
<ProjectReference Include="..\app.Share.Common\app.Share.Common.csproj"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="NLog" Version="4.7.13"/>
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Reference in New Issue
Block a user