Updates Models + Validator

This commit is contained in:
2026-03-12 16:24:32 +01:00
parent 7ede95db7c
commit fd33ac4744
26 changed files with 142 additions and 12 deletions

View File

@@ -2,5 +2,5 @@ namespace Knots.DTO.Discussion;
public class CreateDiscussionDto
{
public int Id { get; set; }
}

View File

@@ -2,5 +2,5 @@ namespace Knots.DTO.Discussion;
public class DeleteDiscussionDto
{
public int Id { get; set; }
}

View File

@@ -2,5 +2,5 @@ namespace Knots.DTO.Discussion;
public class GetDiscussionDto
{
public int Id { get; set; }
}

View File

@@ -0,0 +1,9 @@
namespace Knots.DTO.Group;
public class GetGroupDetailsDto
{
public int Id { get; set; }
public string? Nom { get; set; }
public int NombreMembres { get; set; }
public string? ProfilePicture { get; set; }
}

View File

@@ -3,7 +3,4 @@ namespace Knots.DTO.Group;
public class GetGroupDto
{
public int Id { get; set; }
public string? Nom { get; set; }
public int NombreMembres { get; set; }
public string? ProfilePicture { get; set; }
}

View File

@@ -0,0 +1,7 @@
namespace Knots.DTO.Key;
public class GetKeyDetailsDto
{
public int Id { get; set; }
public string? EnKey { get; set; }
}

View File

@@ -3,5 +3,4 @@ namespace Knots.DTO.Key;
public class GetKeyDto
{
public int Id { get; set; }
public string? EnKey { get; set; }
}

View File

@@ -0,0 +1,8 @@
namespace Knots.DTO.Message;
public class GetMessageDetailsDto
{
public string? Contenu { get; set; }
public DateTime Date { get; set; }
public Boolean Type { get; set; }
}

View File

@@ -2,7 +2,5 @@ namespace Knots.DTO.Message;
public class GetMessageDto
{
public string? Contenu { get; set; }
public DateTime Date { get; set; }
public Boolean Type { get; set; }
public int Id { get; set; }
}

View File

@@ -0,0 +1,11 @@
namespace Knots.DTO.User;
public class CreateUserDto
{
public string? Username { get; set; }
public string? Description {get; set;}
public string? Password { get; set; }
public string? Email { get; set; }
public string? Tel { get; set; }
public string? ProfilePicture { get; set; }
}

View File

@@ -0,0 +1,6 @@
namespace Knots.DTO.User;
public class DeleteUserDto
{
public string? Username { get; set; }
}

View File

@@ -0,0 +1,11 @@
namespace Knots.DTO.User;
public class GetUserDetailsDto
{
public string? Username { get; set; }
public string? Description {get; set;}
public string? Password { get; set; }
public string? Email { get; set; }
public string? Tel { get; set; }
public string? ProfilePicture { get; set; }
}

View File

@@ -0,0 +1,6 @@
namespace Knots.DTO.User;
public class GetUserDto
{
public string? Username { get; set; }
}

View File

@@ -0,0 +1,11 @@
namespace Knots.DTO.User;
public class UpdateUserDto
{
public string? Username { get; set; }
public string? Description {get; set;}
public string? Password { get; set; }
public string? Email { get; set; }
public string? Tel { get; set; }
public string? ProfilePicture { get; set; }
}