profileShare

rasmusjy / splitapp-backend-microservices

Read-only snapshot

No repository description.

main default branch 501 files Expires Sep 13, 2026, 9:06 AM
AccountDtos.cs 1,169 bytes
1 namespace SplitApp.WebApp.Application.UsersService.Dtos;
2
3 // Wire format mirrors SplitApp.Modules.Users.Api.Dto.v1 (intentional — WebApp must not
4 // project-reference Users.Api). Serialization names match the JSON the service emits.
5
6 public class LoginRequestPayload
7 {
8 public string Email { get; set; } = "";
9 public string Password { get; set; } = "";
10 }
11
12 public class RegisterRequestPayload
13 {
14 public string Email { get; set; } = "";
15 public string Password { get; set; } = "";
16 public string Firstname { get; set; } = "";
17 public string Lastname { get; set; } = "";
18 }
19
20 public class RefreshRequestPayload
21 {
22 public string Jwt { get; set; } = "";
23 public string RefreshToken { get; set; } = "";
24 }
25
26 public class LogoutRequestPayload
27 {
28 public string RefreshToken { get; set; } = "";
29 }
30
31 public class JwtResponsePayload
32 {
33 public string Jwt { get; set; } = "";
34 public string RefreshToken { get; set; } = "";
35 public string FirstName { get; set; } = "";
36 public string LastName { get; set; } = "";
37 }
38
39 public class ServiceErrorPayload
40 {
41 public string? Error { get; set; }
42 public IEnumerable<string>? Errors { get; set; }
43 }
44