mirror of
https://github.com/hmaxnl/DotBased.git
synced 2024-11-09 23:04:20 +01:00
36 lines
1.4 KiB
C#
36 lines
1.4 KiB
C#
using DotBased.ASP.Auth.Domains.Auth;
|
|
using DotBased.ASP.Auth.Domains.Identity;
|
|
using DotBased.Objects;
|
|
|
|
namespace DotBased.ASP.Auth;
|
|
|
|
public interface IAuthDataProvider
|
|
{
|
|
/*
|
|
* Identity
|
|
*/
|
|
|
|
// User
|
|
public Task<Result> CreateUserAsync(UserModel user);
|
|
public Task<Result> UpdateUserAsync(UserModel user);
|
|
public Task<Result> DeleteUserAsync(UserModel user);
|
|
public Task<Result<UserModel>> GetUserAsync(string id, string email, string username);
|
|
public Task<ListResult<UserItemModel>> GetUsersAsync(int start = 0, int amount = 30, string search = "");
|
|
|
|
// Group
|
|
public Task<Result> CreateGroupAsync(GroupModel group);
|
|
public Task<Result> UpdateGroupAsync(GroupModel group);
|
|
public Task<Result> DeleteGroupAsync(GroupModel group);
|
|
public Task<Result<GroupModel>> GetGroupAsync(string id);
|
|
public Task<ListResult<GroupItemModel>> GetGroupsAsync(int start = 0, int amount = 30, string search = "");
|
|
|
|
/*
|
|
* Auth
|
|
*/
|
|
|
|
// AuthenticationState
|
|
public Task<Result> CreateAuthenticationStateAsync(AuthenticationStateModel authenticationState);
|
|
public Task<Result> UpdateAuthenticationStateAsync(AuthenticationStateModel authenticationState);
|
|
public Task<Result> DeleteAuthenticationStateAsync(AuthenticationStateModel authenticationState);
|
|
public Task<Result<AuthenticationStateModel>> GetAuthenticationStateAsync(string id);
|
|
} |