2023-09-19 23:32:30 -05:00
|
|
|
|
using DamageAssesment.Api.UsersAccess.Models;
|
|
|
|
|
|
|
|
|
|
namespace DamageAssesment.Api.UsersAccess.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IUsersAccessProvider
|
|
|
|
|
{
|
2023-12-12 17:13:44 -05:00
|
|
|
|
public Task<(bool IsSuccess, IEnumerable<object> Users, string ErrorMessage)> GetUsersAsync();
|
|
|
|
|
public Task<(bool IsSuccess, object User, string ErrorMessage)> GetUsersAsync(int Id);
|
2023-09-19 23:32:30 -05:00
|
|
|
|
public Task<(bool IsSuccess, Models.User User, string ErrorMessage)> PostUserAsync(Models.User User);
|
|
|
|
|
public Task<(bool IsSuccess, Models.User User, string ErrorMessage)> PutUserAsync(int Id,Models.User User);
|
|
|
|
|
public Task<(bool IsSuccess, Models.User User, string ErrorMessage)> DeleteUserAsync(int Id);
|
|
|
|
|
public Task<(bool IsSuccess, IEnumerable<Models.Role> Roles, string ErrorMessage)> GetRolesAsync();
|
|
|
|
|
public Task<(bool IsSuccess, Models.TokenResponse TokenResponse, string ErrorMessage)> AuthenticateAsync(string employeCode);
|
2023-11-13 15:13:25 -05:00
|
|
|
|
public Task<(bool IsSuccess, Models.DadeSchoolToken TokenResponse, string ErrorMessage)> DadeSchoolAuthenticateAsync(string username, string password);
|
2023-09-19 23:32:30 -05:00
|
|
|
|
public Task<(bool IsSuccess, Models.TokenResponse TokenResponse, string ErrorMessage)>RefreshTokenAsync(TokenResponse tokenResponse);
|
|
|
|
|
public void seedData();
|
|
|
|
|
}
|
|
|
|
|
}
|