First commit. Include junk from template to remove
This commit is contained in:
12
src/Application/Common/Interfaces/IApplicationDbContext.cs
Normal file
12
src/Application/Common/Interfaces/IApplicationDbContext.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Hutopy.Domain.Entities;
|
||||
|
||||
namespace Hutopy.Application.Common.Interfaces;
|
||||
|
||||
public interface IApplicationDbContext
|
||||
{
|
||||
DbSet<TodoList> TodoLists { get; }
|
||||
|
||||
DbSet<TodoItem> TodoItems { get; }
|
||||
|
||||
Task<int> SaveChangesAsync(CancellationToken cancellationToken);
|
||||
}
|
||||
16
src/Application/Common/Interfaces/IIdentityService.cs
Normal file
16
src/Application/Common/Interfaces/IIdentityService.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Hutopy.Application.Common.Models;
|
||||
|
||||
namespace Hutopy.Application.Common.Interfaces;
|
||||
|
||||
public interface IIdentityService
|
||||
{
|
||||
Task<string?> GetUserNameAsync(string userId);
|
||||
|
||||
Task<bool> IsInRoleAsync(string userId, string role);
|
||||
|
||||
Task<bool> AuthorizeAsync(string userId, string policyName);
|
||||
|
||||
Task<(Result Result, string UserId)> CreateUserAsync(string userName, string password);
|
||||
|
||||
Task<Result> DeleteUserAsync(string userId);
|
||||
}
|
||||
6
src/Application/Common/Interfaces/IUser.cs
Normal file
6
src/Application/Common/Interfaces/IUser.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Hutopy.Application.Common.Interfaces;
|
||||
|
||||
public interface IUser
|
||||
{
|
||||
string? Id { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user