Skip to content

Commit 19c45bc

Browse files
UbuntuUbuntu
authored andcommitted
Merge branch 'release/1.2.3'
2 parents eca9b63 + d98a29b commit 19c45bc

File tree

134 files changed

+6481
-668
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+6481
-668
lines changed

Streetcode/Streetcode.BLL/Constants/MessageData/MessageDataConstants.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
public static class MessageDataConstants
44
{
55
public const string FeedbackMessageTitle = "Відгук";
6-
public const string ForgotPasswordTitle = "HistoryCode забули пароль";
6+
public const string ForgotPasswordTitle = "Запит на відновлення пароля";
7+
public const string DeleteConfirmationTitle = "Підтвердження видалення аккаунту";
78
}

Streetcode/Streetcode.BLL/DTO/Authentication/Login/LoginRequestDTO.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,9 @@ namespace Streetcode.BLL.DTO.Authentication.Login;
77

88
public class LoginRequestDTO
99
{
10-
[Required]
11-
[ValidEmail]
12-
[DefaultValue(AuthConstants.Email)]
1310
public string Login { get; set; } = null!;
1411

15-
[Required]
16-
[DefaultValue(AuthConstants.Password)]
17-
[MaxLength(30, ErrorMessage = "Password maximum length is 30")]
1812
public string Password { get; set; } = null!;
1913

20-
[Required]
2114
public string CaptchaToken { get; set; } = null!;
2215
}

Streetcode/Streetcode.BLL/DTO/Authentication/Register/RegisterRequestDTO.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,13 @@ namespace Streetcode.BLL.DTO.Authentication.Register;
55

66
public class RegisterRequestDTO
77
{
8-
[Required]
9-
[MaxLength(50)]
108
public string Name { get; set; } = null!;
119

12-
[Required]
13-
[MaxLength(50)]
1410
public string Surname { get; set; } = null!;
1511

16-
[Required]
17-
[ValidEmail]
1812
public string Email { get; set; } = null!;
1913

20-
[Required]
21-
[MaxLength(30, ErrorMessage = "Password maximum length is 30")]
22-
[StrongPassword]
2314
public string Password { get; set; } = null!;
2415

25-
[Required]
26-
[Display(Name = "Confirm password")]
27-
[MaxLength(30, ErrorMessage = "Password maximum length is 30")]
28-
[Compare(nameof(Password))]
2916
public string PasswordConfirmation { get; set; } = null!;
3017
}

Streetcode/Streetcode.BLL/DTO/Media/Images/ImageDTO.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ public class ImageDTO
77
public string BlobName { get; set; } = null!;
88
public string Base64 { get; set; } = null!;
99
public string MimeType { get; set; } = null!;
10+
public ulong ImageHash { get; set; }
1011
public ImageDetailsDto? ImageDetails { get; set; }
1112
}

Streetcode/Streetcode.BLL/DTO/News/CreateUpdateNewsDTO.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ public abstract class CreateUpdateNewsDTO
1212
[Required(AllowEmptyStrings = false)]
1313
[StringLength(25000, ErrorMessage = "Max Length is 25000")]
1414
public string Text { get; set; } = null!;
15+
1516
[Required]
1617
public int ImageId { get; set; }
1718

1819
[Required(AllowEmptyStrings = false)]
1920
[StringLength(200, ErrorMessage = "Max Length is 200")]
2021
public string URL { get; set; } = null!;
22+
2123
[Required]
2224
public DateTime CreationDate { get; set; }
2325
}

Streetcode/Streetcode.BLL/DTO/Streetcode/Create/StreetcodeCreateDTO.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ public class StreetcodeCreateDTO : StreetcodeCreateUpdateDTO
2020

2121
public int? AudioId { get; set; }
2222

23-
public IEnumerable<int> ImagesIds { get; set; } = new List<int>();
24-
2523
public IEnumerable<StreetcodeTagDTO>? Tags { get; set; } = new List<StreetcodeTagDTO>();
2624

2725
public IEnumerable<SubtitleCreateDTO>? Subtitles { get; set; } = new List<SubtitleCreateDTO>();
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace Streetcode.BLL.DTO.Streetcode.TextContent
2+
{
3+
public class GetAllTermsResponseDto
4+
{
5+
public int TotalAmount { get; set; }
6+
public IEnumerable<TermDTO> Terms { get; set; } = new List<TermDTO>();
7+
}
8+
}

Streetcode/Streetcode.BLL/DTO/Users/BaseUserDTO.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@ namespace Streetcode.BLL.DTO.Users;
44

55
public abstract class BaseUserDTO
66
{
7+
public string Id { get; set; } = null!;
8+
79
public string Name { get; set; } = null!;
10+
811
public string Surname { get; set; } = null!;
12+
913
public string UserName { get; set; } = null!;
14+
1015
public string? AboutYourself { get; set; }
16+
1117
public int? AvatarId { get; set; } = null!;
18+
1219
public List<ExpertiseDTO> Expertises { get; set; } = new();
1320

1421
public string Role { get; set; } = null!;

Streetcode/Streetcode.BLL/DTO/Users/UpdateUserDTO.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@ namespace Streetcode.BLL.DTO.Users;
55

66
public class UpdateUserDTO
77
{
8+
public string Id { get; set; } = null!;
9+
810
public string Name { get; set; } = null!;
11+
912
public string Surname { get; set; } = null!;
13+
1014
public string UserName { get; set; } = null!;
15+
1116
public string? AboutYourself { get; set; }
17+
1218
public int? AvatarId { get; set; } = null!;
19+
1320
public List<ExpertiseDTO> Expertises { get; set; } = new();
14-
[Phone]
21+
1522
public string PhoneNumber { get; set; } = null!;
16-
public string Email { get; set; } = null!;
1723
}

Streetcode/Streetcode.BLL/DTO/Users/UserDTO.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
public class UserDTO : BaseUserDTO
44
{
55
public string PhoneNumber { get; set; } = null!;
6+
67
public string Email { get; set; } = null!;
78
}
89
}

0 commit comments

Comments
 (0)