Updates Models + Validator
This commit is contained in:
@@ -2,5 +2,5 @@ namespace Knots.DTO.Discussion;
|
|||||||
|
|
||||||
public class CreateDiscussionDto
|
public class CreateDiscussionDto
|
||||||
{
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
}
|
}
|
||||||
@@ -2,5 +2,5 @@ namespace Knots.DTO.Discussion;
|
|||||||
|
|
||||||
public class DeleteDiscussionDto
|
public class DeleteDiscussionDto
|
||||||
{
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
}
|
}
|
||||||
@@ -2,5 +2,5 @@ namespace Knots.DTO.Discussion;
|
|||||||
|
|
||||||
public class GetDiscussionDto
|
public class GetDiscussionDto
|
||||||
{
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
}
|
}
|
||||||
@@ -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 class GetGroupDto
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string? Nom { get; set; }
|
|
||||||
public int NombreMembres { get; set; }
|
|
||||||
public string? ProfilePicture { get; set; }
|
|
||||||
}
|
}
|
||||||
@@ -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 class GetKeyDto
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string? EnKey { get; set; }
|
|
||||||
}
|
}
|
||||||
@@ -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 class GetMessageDto
|
||||||
{
|
{
|
||||||
public string? Contenu { get; set; }
|
public int Id { get; set; }
|
||||||
public DateTime Date { get; set; }
|
|
||||||
public Boolean Type { get; set; }
|
|
||||||
}
|
}
|
||||||
@@ -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; }
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Knots.DTO.User;
|
||||||
|
|
||||||
|
public class DeleteUserDto
|
||||||
|
{
|
||||||
|
public string? Username { get; set; }
|
||||||
|
}
|
||||||
@@ -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; }
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Knots.DTO.User;
|
||||||
|
|
||||||
|
public class GetUserDto
|
||||||
|
{
|
||||||
|
public string? Username { get; set; }
|
||||||
|
}
|
||||||
@@ -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; }
|
||||||
|
}
|
||||||
+3
-2
@@ -19,9 +19,10 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="DTO\User\" />
|
|
||||||
<Folder Include="Endpoints\" />
|
<Folder Include="Endpoints\" />
|
||||||
<Folder Include="Validators\" />
|
<Folder Include="Validators\Group\" />
|
||||||
|
<Folder Include="Validators\Key\" />
|
||||||
|
<Folder Include="Validators\Message\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Knots.Validators.Discussion;
|
||||||
|
|
||||||
|
public class CreateDiscussionDtoValidator
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Knots.Validators.Discussion;
|
||||||
|
|
||||||
|
public class DeleteDiscussionDtoValidator
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Knots.Validators.Discussion;
|
||||||
|
|
||||||
|
public class GetDiscussionDtoValidator
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Knots.Validators.Role;
|
||||||
|
|
||||||
|
public class CreateRoleDtoValidator
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Knots.Validators.Role;
|
||||||
|
|
||||||
|
public class DeleteRoleDtoValidator
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Knots.Validators.Role;
|
||||||
|
|
||||||
|
public class GetRoleDtoValidator
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Knots.Validators.User;
|
||||||
|
|
||||||
|
public class CreateUserDtoValidator
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Knots.Validators.User;
|
||||||
|
|
||||||
|
public class DeleteUserDtoValidator
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Knots.Validators.User;
|
||||||
|
|
||||||
|
public class GetUserDetailsDtoValidator
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Knots.Validators.User;
|
||||||
|
|
||||||
|
public class GetUserDtoValidator
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Knots.Validators.User;
|
||||||
|
|
||||||
|
public class UpdateUserDtoValidator
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user