38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
namespace line_gestao_api.Dtos;
|
|
|
|
public class UserCreateRequest
|
|
{
|
|
public string Nome { get; set; } = string.Empty;
|
|
public string Email { get; set; } = string.Empty;
|
|
public string Senha { get; set; } = string.Empty;
|
|
public string ConfirmarSenha { get; set; } = string.Empty;
|
|
public string Permissao { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class UserUpdateRequest
|
|
{
|
|
public string? Permissao { get; set; }
|
|
public bool? Ativo { get; set; }
|
|
}
|
|
|
|
public class UserListItemDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Nome { get; set; } = string.Empty;
|
|
public string Email { get; set; } = string.Empty;
|
|
public string Permissao { get; set; } = string.Empty;
|
|
public Guid TenantId { get; set; }
|
|
public bool Ativo { get; set; }
|
|
}
|
|
|
|
public class ValidationErrorDto
|
|
{
|
|
public string Field { get; set; } = string.Empty;
|
|
public string Message { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class ValidationErrorResponse
|
|
{
|
|
public List<ValidationErrorDto> Errors { get; set; } = new();
|
|
}
|