Updates Models + Validator
This commit is contained in:
@@ -2,5 +2,5 @@ namespace Knots.DTO.Discussion;
|
||||
|
||||
public class CreateDiscussionDto
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
@@ -2,5 +2,5 @@ namespace Knots.DTO.Discussion;
|
||||
|
||||
public class DeleteDiscussionDto
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
@@ -2,5 +2,5 @@ namespace Knots.DTO.Discussion;
|
||||
|
||||
public class GetDiscussionDto
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
9
Knots/DTO/Group/GetGroupDetailsDto.cs
Normal file
9
Knots/DTO/Group/GetGroupDetailsDto.cs
Normal 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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
7
Knots/DTO/Key/GetKeyDetailsDto.cs
Normal file
7
Knots/DTO/Key/GetKeyDetailsDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Knots.DTO.Key;
|
||||
|
||||
public class GetKeyDetailsDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? EnKey { get; set; }
|
||||
}
|
||||
@@ -3,5 +3,4 @@ namespace Knots.DTO.Key;
|
||||
public class GetKeyDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? EnKey { get; set; }
|
||||
}
|
||||
8
Knots/DTO/Message/GetMessageDetailsDto.cs
Normal file
8
Knots/DTO/Message/GetMessageDetailsDto.cs
Normal 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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
11
Knots/DTO/User/CreateUserDto.cs
Normal file
11
Knots/DTO/User/CreateUserDto.cs
Normal 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; }
|
||||
}
|
||||
6
Knots/DTO/User/DeleteUserDto.cs
Normal file
6
Knots/DTO/User/DeleteUserDto.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Knots.DTO.User;
|
||||
|
||||
public class DeleteUserDto
|
||||
{
|
||||
public string? Username { get; set; }
|
||||
}
|
||||
11
Knots/DTO/User/GetUserDetailsDto.cs
Normal file
11
Knots/DTO/User/GetUserDetailsDto.cs
Normal 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; }
|
||||
}
|
||||
6
Knots/DTO/User/GetUserDto.cs
Normal file
6
Knots/DTO/User/GetUserDto.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Knots.DTO.User;
|
||||
|
||||
public class GetUserDto
|
||||
{
|
||||
public string? Username { get; set; }
|
||||
}
|
||||
11
Knots/DTO/User/UpdateUserDto.cs
Normal file
11
Knots/DTO/User/UpdateUserDto.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user