Cleaned code

This commit is contained in:
2026-03-24 18:02:10 +01:00
parent ae8a33b7b6
commit c8cd5d9257
24 changed files with 66 additions and 67 deletions
@@ -13,6 +13,5 @@ public class UnlockAchievementDtoValidator : Validator<UnlockAchievementDto>
.WithMessage("AchievementId cannot be empty") .WithMessage("AchievementId cannot be empty")
.GreaterThan(0) .GreaterThan(0)
.WithMessage("AchievementId must be greater than 0"); .WithMessage("AchievementId must be greater than 0");
} }
} }
@@ -4,7 +4,7 @@ using FluentValidation;
namespace BeReadyBackend.Validators.Auth; namespace BeReadyBackend.Validators.Auth;
public class LoginDtoValidator: Validator<LoginDto> public class LoginDtoValidator : Validator<LoginDto>
{ {
public LoginDtoValidator() public LoginDtoValidator()
{ {
@@ -6,8 +6,8 @@ namespace BeReadyBackend.Validators.Users;
public class GetUserDtoValidator : Validator<GetUserDto> public class GetUserDtoValidator : Validator<GetUserDto>
{ {
public GetUserDtoValidator() { public GetUserDtoValidator()
{
RuleFor(x => x.Id) RuleFor(x => x.Id)
.NotEmpty() .NotEmpty()
.WithMessage("Id cannot be empty") .WithMessage("Id cannot be empty")
@@ -16,7 +16,7 @@ public class GetUserStatsDtoValidator : Validator<GetUserStatsDto>
.NotEmpty() .NotEmpty()
.WithMessage("Total win is required"); .WithMessage("Total win is required");
RuleFor(x=> x.TotalChallenge) RuleFor(x => x.TotalChallenge)
.NotEmpty() .NotEmpty()
.WithMessage("Total challenge is required"); .WithMessage("Total challenge is required");