mirror of
https://github.com/Shchoholiev/shopping-assistant-api.git
synced 2025-04-03 16:19:46 +00:00
22 lines
988 B
C#
22 lines
988 B
C#
using ShoppingAssistantApi.Application.Models.Dtos;
|
|
using ShoppingAssistantApi.Application.Models.Identity;
|
|
using ShoppingAssistantApi.Application.Models.Operations;
|
|
|
|
namespace ShoppingAssistantApi.Application.IServices.Identity;
|
|
|
|
public interface IUserManager
|
|
{
|
|
Task<TokensModel> AccessGuestAsync(AccessGuestModel guest, CancellationToken cancellationToken);
|
|
|
|
Task<TokensModel> LoginAsync(AccessUserModel login, CancellationToken cancellationToken);
|
|
|
|
Task<UserDto> AddToRoleAsync(string roleName, string userId, CancellationToken cancellationToken);
|
|
|
|
Task<UserDto> RemoveFromRoleAsync(string roleName, string userId, CancellationToken cancellationToken);
|
|
|
|
Task<UpdateUserModel> UpdateAsync(UserDto userDto, CancellationToken cancellationToken);
|
|
|
|
Task<UserDto> UpdateUserByAdminAsync(string id, UserDto userDto, CancellationToken cancellationToken);
|
|
|
|
Task<TokensModel> RefreshAccessTokenAsync(TokensModel tokensModel, CancellationToken cancellationToken);
|
|
} |