Generator Changes at 11/25/2025 1:59:23 AM +03:30

This commit is contained in:
masoodafar-web
2025-11-25 02:03:51 +03:30
parent 87842f0b9b
commit 92a9a0e75d
77 changed files with 164 additions and 138 deletions

View File

@@ -5,5 +5,7 @@ public record CreateNewUserWalletCommand : IRequest<CreateNewUserWalletResponseD
public long UserId { get; init; }
//موجودی
public long Balance { get; init; }
//موجودی شبکه
public long NetworkBalance { get; init; }
}

View File

@@ -7,6 +7,8 @@ public class CreateNewUserWalletCommandValidator : AbstractValidator<CreateNewUs
.NotNull();
RuleFor(model => model.Balance)
.NotNull();
RuleFor(model => model.NetworkBalance)
.NotNull();
}
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
{

View File

@@ -7,5 +7,7 @@ public record UpdateUserWalletCommand : IRequest<Unit>
public long UserId { get; init; }
//موجودی
public long Balance { get; init; }
//موجودی شبکه
public long NetworkBalance { get; init; }
}

View File

@@ -9,6 +9,8 @@ public class UpdateUserWalletCommandValidator : AbstractValidator<UpdateUserWall
.NotNull();
RuleFor(model => model.Balance)
.NotNull();
RuleFor(model => model.NetworkBalance)
.NotNull();
}
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
{

View File

@@ -16,4 +16,6 @@ public record GetAllUserWalletByFilterQuery : IRequest<GetAllUserWalletByFilterR
public long? UserId { get; set; }
//موجودی
public long? Balance { get; set; }
//موجودی شبکه
public long NetworkBalance { get; set; }
}

View File

@@ -14,4 +14,6 @@ public class GetAllUserWalletByFilterResponseDto
public long UserId { get; set; }
//موجودی
public long Balance { get; set; }
//موجودی شبکه
public long NetworkBalance { get; set; }
}

View File

@@ -7,5 +7,7 @@ public class GetUserWalletResponseDto
public long UserId { get; set; }
//موجودی
public long Balance { get; set; }
//موجودی شبکه
public long NetworkBalance { get; set; }
}