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; }
|
||||
}
|
||||
@@ -19,9 +19,10 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="DTO\User\" />
|
||||
<Folder Include="Endpoints\" />
|
||||
<Folder Include="Validators\" />
|
||||
<Folder Include="Validators\Group\" />
|
||||
<Folder Include="Validators\Key\" />
|
||||
<Folder Include="Validators\Message\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Knots.Validators.Discussion;
|
||||
|
||||
public class CreateDiscussionDtoValidator
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Knots.Validators.Discussion;
|
||||
|
||||
public class DeleteDiscussionDtoValidator
|
||||
{
|
||||
|
||||
}
|
||||
6
Knots/Validators/Discussion/GetDiscussionDtoValidator.cs
Normal file
6
Knots/Validators/Discussion/GetDiscussionDtoValidator.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Knots.Validators.Discussion;
|
||||
|
||||
public class GetDiscussionDtoValidator
|
||||
{
|
||||
|
||||
}
|
||||
6
Knots/Validators/Role/CreateRoleDtoValidator.cs
Normal file
6
Knots/Validators/Role/CreateRoleDtoValidator.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Knots.Validators.Role;
|
||||
|
||||
public class CreateRoleDtoValidator
|
||||
{
|
||||
|
||||
}
|
||||
6
Knots/Validators/Role/DeleteRoleDtoValidator.cs
Normal file
6
Knots/Validators/Role/DeleteRoleDtoValidator.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Knots.Validators.Role;
|
||||
|
||||
public class DeleteRoleDtoValidator
|
||||
{
|
||||
|
||||
}
|
||||
6
Knots/Validators/Role/GetRoleDtoValidator.cs
Normal file
6
Knots/Validators/Role/GetRoleDtoValidator.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Knots.Validators.Role;
|
||||
|
||||
public class GetRoleDtoValidator
|
||||
{
|
||||
|
||||
}
|
||||
6
Knots/Validators/User/CreateUserDtoValidator.cs
Normal file
6
Knots/Validators/User/CreateUserDtoValidator.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Knots.Validators.User;
|
||||
|
||||
public class CreateUserDtoValidator
|
||||
{
|
||||
|
||||
}
|
||||
6
Knots/Validators/User/DeleteUserDtoValidator.cs
Normal file
6
Knots/Validators/User/DeleteUserDtoValidator.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Knots.Validators.User;
|
||||
|
||||
public class DeleteUserDtoValidator
|
||||
{
|
||||
|
||||
}
|
||||
6
Knots/Validators/User/GetUserDetailsDtoValidator.cs
Normal file
6
Knots/Validators/User/GetUserDetailsDtoValidator.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Knots.Validators.User;
|
||||
|
||||
public class GetUserDetailsDtoValidator
|
||||
{
|
||||
|
||||
}
|
||||
6
Knots/Validators/User/GetUserDtoValidator.cs
Normal file
6
Knots/Validators/User/GetUserDtoValidator.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Knots.Validators.User;
|
||||
|
||||
public class GetUserDtoValidator
|
||||
{
|
||||
|
||||
}
|
||||
6
Knots/Validators/User/UpdateUserDtoValidator.cs
Normal file
6
Knots/Validators/User/UpdateUserDtoValidator.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Knots.Validators.User;
|
||||
|
||||
public class UpdateUserDtoValidator
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user