-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathIAccountService.cs
More file actions
28 lines (26 loc) · 1.32 KB
/
IAccountService.cs
File metadata and controls
28 lines (26 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System.Collections.Generic;
using System.Threading.Tasks;
using HwProj.Models.AuthService.DTO;
using HwProj.Models.AuthService.ViewModels;
using HwProj.Models.Result;
using User = HwProj.AuthService.API.Models.User;
namespace HwProj.AuthService.API.Services
{
public interface IAccountService
{
Task<AccountDataDto> GetAccountDataAsync(string userId);
Task<AccountDataDto[]> GetAccountsDataAsync(string[] userIds);
Task<AccountDataDto> GetAccountDataByEmailAsync(string email);
Task<Result<string>> RegisterStudentAsync(RegisterDataDTO model);
Task<Result<string>> RegisterLecturerAsync(RegisterDataDTO model);
Task<Result> EditAccountAsync(string accountId, EditDataDTO model);
Task<Result<TokenCredentials>> LoginUserAsync(LoginViewModel model);
Task<Result<TokenCredentials>> RefreshToken(string userId);
Task<Result> InviteNewLecturer(string emailOfInvitedUser);
Task<IList<User>> GetUsersInRole(string role);
Task<Result> RequestPasswordRecovery(RequestPasswordRecoveryViewModel model);
Task<Result> ResetPassword(ResetPasswordViewModel model);
Task<GithubCredentials> AuthorizeGithub(string code, string userId);
Task<Result<string>[]> GetOrRegisterStudentsBatchAsync(IEnumerable<RegisterDataDTO> models);
}
}