add "me" endpoint

This commit is contained in:
Вячеслав 2025-05-13 18:09:06 +05:00
parent 98b38f645f
commit ae1a8d2b97
7 changed files with 49 additions and 10 deletions

View file

@ -1,4 +1,4 @@
namespace SurveyBackend.DTOs;
namespace SurveyBackend.DTOs.User;
/// <summary>
/// Схема авторизации пользователя

View file

@ -0,0 +1,9 @@
namespace SurveyBackend.DTOs.User;
public class UserOutputDto
{
public long Id { get; set; }
public required string Email { get; set; }
public required string FirstName { get; set; }
public string? LastName { get; set; }
}

View file

@ -1,4 +1,4 @@
namespace SurveyBackend.DTOs;
namespace SurveyBackend.DTOs.User;
/// <summary>
/// Схема регистрации пользователя
@ -10,11 +10,6 @@ public record UserRegistrationDto
/// </summary>
public required string Email { get; set; }
/// <summary>
/// Юзернейм
/// </summary>
public string Username { get; set; }
/// <summary>
/// Имя
/// </summary>