-
Notifications
You must be signed in to change notification settings - Fork 1
/
IAccountService.cs
40 lines (30 loc) · 1.27 KB
/
IAccountService.cs
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
29
30
31
32
33
34
35
36
37
38
39
40
using System.Threading.Tasks;
using ErikTheCoder.Identity.Contract.Requests;
using ErikTheCoder.Identity.Contract.Responses;
using ErikTheCoder.ServiceContract;
using JetBrains.Annotations;
using Refit;
namespace ErikTheCoder.Identity.Contract
{
[UsedImplicitly]
public interface IAccountService
{
// Refit requires a string literal URL, not a constant. Ensure the implementing service uses the same URL.
// See https://stackoverflow.com/questions/47537005/how-to-share-service-method-url-between-refit-and-web-api
[UsedImplicitly]
[Post("/account/login")]
Task<User> LoginAsync([Body] LoginRequest Request);
[UsedImplicitly]
[Post("/account/register")]
Task<RegisterResponse> RegisterAsync([Body] RegisterRequest Request);
//[UsedImplicitly]
//[Post("/account/confirm")]
//Task ConfirmAsync([Body] ConfirmRequest Request);
//[UsedImplicitly]
//[Post("/account/forgotpassword")]
//Task ForgotPasswordAsync([Body] ForgotPasswordRequest Request);
//[UsedImplicitly]
//[Post("/account/resetpassword")]
//Task<ResetPasswordResponse> ResetPasswordAsync([Body] ResetPasswordRequest Request);
}
}