32 lines
769 B
C#
32 lines
769 B
C#
namespace LaaProduction.Personalization.Repositories.Interfaces
|
|
{
|
|
using LaaProduction.Personalization.Models;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
internal interface IEmployeesRepository
|
|
{
|
|
IEnumerable<Employee> All();
|
|
|
|
void CreateToken(short appId, short userId);
|
|
|
|
short EmployeeId(string username, string password);
|
|
|
|
Employee Find(short employeeId);
|
|
|
|
Employee GetEmployee(string token);
|
|
|
|
string GetToken(short appId, short userId);
|
|
|
|
EmployeeToken GetTokenData(string token);
|
|
|
|
IEnumerable<string> GetUserRoles(string token);
|
|
|
|
void ResetPassword(short employeeId);
|
|
|
|
void ResetTokens(short employeeId);
|
|
|
|
void SetPassword(short employeeId, string password);
|
|
}
|
|
}
|