diff --git a/Knots/DTO/Discussion/CreateDiscussionDto.cs b/Knots/DTO/Discussion/CreateDiscussionDto.cs index 20d543e..1e9e9d6 100644 --- a/Knots/DTO/Discussion/CreateDiscussionDto.cs +++ b/Knots/DTO/Discussion/CreateDiscussionDto.cs @@ -2,5 +2,5 @@ namespace Knots.DTO.Discussion; public class CreateDiscussionDto { - + public int Id { get; set; } } \ No newline at end of file diff --git a/Knots/DTO/Discussion/DeleteDiscussionDto.cs b/Knots/DTO/Discussion/DeleteDiscussionDto.cs index 5f89be5..8b543dd 100644 --- a/Knots/DTO/Discussion/DeleteDiscussionDto.cs +++ b/Knots/DTO/Discussion/DeleteDiscussionDto.cs @@ -2,5 +2,5 @@ namespace Knots.DTO.Discussion; public class DeleteDiscussionDto { - + public int Id { get; set; } } \ No newline at end of file diff --git a/Knots/DTO/Discussion/GetDiscussionDto.cs b/Knots/DTO/Discussion/GetDiscussionDto.cs index 68e0f0b..8223b52 100644 --- a/Knots/DTO/Discussion/GetDiscussionDto.cs +++ b/Knots/DTO/Discussion/GetDiscussionDto.cs @@ -2,5 +2,5 @@ namespace Knots.DTO.Discussion; public class GetDiscussionDto { - + public int Id { get; set; } } \ No newline at end of file diff --git a/Knots/DTO/Group/GetGroupDetailsDto.cs b/Knots/DTO/Group/GetGroupDetailsDto.cs new file mode 100644 index 0000000..ebb220c --- /dev/null +++ b/Knots/DTO/Group/GetGroupDetailsDto.cs @@ -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; } +} \ No newline at end of file diff --git a/Knots/DTO/Group/GetGroupDto.cs b/Knots/DTO/Group/GetGroupDto.cs index cc9f833..8338582 100644 --- a/Knots/DTO/Group/GetGroupDto.cs +++ b/Knots/DTO/Group/GetGroupDto.cs @@ -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; } } \ No newline at end of file diff --git a/Knots/DTO/Key/GetKeyDetailsDto.cs b/Knots/DTO/Key/GetKeyDetailsDto.cs new file mode 100644 index 0000000..56e2dd5 --- /dev/null +++ b/Knots/DTO/Key/GetKeyDetailsDto.cs @@ -0,0 +1,7 @@ +namespace Knots.DTO.Key; + +public class GetKeyDetailsDto +{ + public int Id { get; set; } + public string? EnKey { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Key/GetKeyDto.cs b/Knots/DTO/Key/GetKeyDto.cs index f4ffe0e..0a5c7c4 100644 --- a/Knots/DTO/Key/GetKeyDto.cs +++ b/Knots/DTO/Key/GetKeyDto.cs @@ -3,5 +3,4 @@ namespace Knots.DTO.Key; public class GetKeyDto { public int Id { get; set; } - public string? EnKey { get; set; } } \ No newline at end of file diff --git a/Knots/DTO/Message/GetMessageDetailsDto.cs b/Knots/DTO/Message/GetMessageDetailsDto.cs new file mode 100644 index 0000000..e1373c5 --- /dev/null +++ b/Knots/DTO/Message/GetMessageDetailsDto.cs @@ -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; } +} \ No newline at end of file diff --git a/Knots/DTO/Message/GetMessageDto.cs b/Knots/DTO/Message/GetMessageDto.cs index 3348f08..a3e4f62 100644 --- a/Knots/DTO/Message/GetMessageDto.cs +++ b/Knots/DTO/Message/GetMessageDto.cs @@ -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; } } \ No newline at end of file diff --git a/Knots/DTO/User/CreateUserDto.cs b/Knots/DTO/User/CreateUserDto.cs new file mode 100644 index 0000000..5764ef9 --- /dev/null +++ b/Knots/DTO/User/CreateUserDto.cs @@ -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; } +} \ No newline at end of file diff --git a/Knots/DTO/User/DeleteUserDto.cs b/Knots/DTO/User/DeleteUserDto.cs new file mode 100644 index 0000000..3768952 --- /dev/null +++ b/Knots/DTO/User/DeleteUserDto.cs @@ -0,0 +1,6 @@ +namespace Knots.DTO.User; + +public class DeleteUserDto +{ + public string? Username { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/User/GetUserDetailsDto.cs b/Knots/DTO/User/GetUserDetailsDto.cs new file mode 100644 index 0000000..98614c7 --- /dev/null +++ b/Knots/DTO/User/GetUserDetailsDto.cs @@ -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; } +} \ No newline at end of file diff --git a/Knots/DTO/User/GetUserDto.cs b/Knots/DTO/User/GetUserDto.cs new file mode 100644 index 0000000..e2bb8ad --- /dev/null +++ b/Knots/DTO/User/GetUserDto.cs @@ -0,0 +1,6 @@ +namespace Knots.DTO.User; + +public class GetUserDto +{ + public string? Username { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/User/UpdateUserDto.cs b/Knots/DTO/User/UpdateUserDto.cs new file mode 100644 index 0000000..d0f8a0a --- /dev/null +++ b/Knots/DTO/User/UpdateUserDto.cs @@ -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; } +} \ No newline at end of file diff --git a/Knots/Knots.csproj b/Knots/Knots.csproj index f899835..93bf7cf 100644 --- a/Knots/Knots.csproj +++ b/Knots/Knots.csproj @@ -19,9 +19,10 @@ - - + + + diff --git a/Knots/Validators/Discussion/CreateDiscussionDtoValidator.cs b/Knots/Validators/Discussion/CreateDiscussionDtoValidator.cs new file mode 100644 index 0000000..ba6106d --- /dev/null +++ b/Knots/Validators/Discussion/CreateDiscussionDtoValidator.cs @@ -0,0 +1,6 @@ +namespace Knots.Validators.Discussion; + +public class CreateDiscussionDtoValidator +{ + +} \ No newline at end of file diff --git a/Knots/Validators/Discussion/DeleteDiscussionDtoValidator.cs b/Knots/Validators/Discussion/DeleteDiscussionDtoValidator.cs new file mode 100644 index 0000000..c8f1c64 --- /dev/null +++ b/Knots/Validators/Discussion/DeleteDiscussionDtoValidator.cs @@ -0,0 +1,6 @@ +namespace Knots.Validators.Discussion; + +public class DeleteDiscussionDtoValidator +{ + +} \ No newline at end of file diff --git a/Knots/Validators/Discussion/GetDiscussionDtoValidator.cs b/Knots/Validators/Discussion/GetDiscussionDtoValidator.cs new file mode 100644 index 0000000..c73960f --- /dev/null +++ b/Knots/Validators/Discussion/GetDiscussionDtoValidator.cs @@ -0,0 +1,6 @@ +namespace Knots.Validators.Discussion; + +public class GetDiscussionDtoValidator +{ + +} \ No newline at end of file diff --git a/Knots/Validators/Role/CreateRoleDtoValidator.cs b/Knots/Validators/Role/CreateRoleDtoValidator.cs new file mode 100644 index 0000000..d4eb2dc --- /dev/null +++ b/Knots/Validators/Role/CreateRoleDtoValidator.cs @@ -0,0 +1,6 @@ +namespace Knots.Validators.Role; + +public class CreateRoleDtoValidator +{ + +} \ No newline at end of file diff --git a/Knots/Validators/Role/DeleteRoleDtoValidator.cs b/Knots/Validators/Role/DeleteRoleDtoValidator.cs new file mode 100644 index 0000000..e7670d5 --- /dev/null +++ b/Knots/Validators/Role/DeleteRoleDtoValidator.cs @@ -0,0 +1,6 @@ +namespace Knots.Validators.Role; + +public class DeleteRoleDtoValidator +{ + +} \ No newline at end of file diff --git a/Knots/Validators/Role/GetRoleDtoValidator.cs b/Knots/Validators/Role/GetRoleDtoValidator.cs new file mode 100644 index 0000000..bd7b33d --- /dev/null +++ b/Knots/Validators/Role/GetRoleDtoValidator.cs @@ -0,0 +1,6 @@ +namespace Knots.Validators.Role; + +public class GetRoleDtoValidator +{ + +} \ No newline at end of file diff --git a/Knots/Validators/User/CreateUserDtoValidator.cs b/Knots/Validators/User/CreateUserDtoValidator.cs new file mode 100644 index 0000000..ce0633e --- /dev/null +++ b/Knots/Validators/User/CreateUserDtoValidator.cs @@ -0,0 +1,6 @@ +namespace Knots.Validators.User; + +public class CreateUserDtoValidator +{ + +} \ No newline at end of file diff --git a/Knots/Validators/User/DeleteUserDtoValidator.cs b/Knots/Validators/User/DeleteUserDtoValidator.cs new file mode 100644 index 0000000..1fa19a2 --- /dev/null +++ b/Knots/Validators/User/DeleteUserDtoValidator.cs @@ -0,0 +1,6 @@ +namespace Knots.Validators.User; + +public class DeleteUserDtoValidator +{ + +} \ No newline at end of file diff --git a/Knots/Validators/User/GetUserDetailsDtoValidator.cs b/Knots/Validators/User/GetUserDetailsDtoValidator.cs new file mode 100644 index 0000000..cd1b1f7 --- /dev/null +++ b/Knots/Validators/User/GetUserDetailsDtoValidator.cs @@ -0,0 +1,6 @@ +namespace Knots.Validators.User; + +public class GetUserDetailsDtoValidator +{ + +} \ No newline at end of file diff --git a/Knots/Validators/User/GetUserDtoValidator.cs b/Knots/Validators/User/GetUserDtoValidator.cs new file mode 100644 index 0000000..5ee1dc7 --- /dev/null +++ b/Knots/Validators/User/GetUserDtoValidator.cs @@ -0,0 +1,6 @@ +namespace Knots.Validators.User; + +public class GetUserDtoValidator +{ + +} \ No newline at end of file diff --git a/Knots/Validators/User/UpdateUserDtoValidator.cs b/Knots/Validators/User/UpdateUserDtoValidator.cs new file mode 100644 index 0000000..cc95957 --- /dev/null +++ b/Knots/Validators/User/UpdateUserDtoValidator.cs @@ -0,0 +1,6 @@ +namespace Knots.Validators.User; + +public class UpdateUserDtoValidator +{ + +} \ No newline at end of file