Generator Changes at 11/25/2025 1:59:23 AM +03:30
This commit is contained in:
@@ -5,5 +5,7 @@ public record CreateNewUserWalletCommand : IRequest<CreateNewUserWalletResponseD
|
||||
public long UserId { get; init; }
|
||||
//موجودی
|
||||
public long Balance { get; init; }
|
||||
//موجودی شبکه
|
||||
public long NetworkBalance { get; init; }
|
||||
|
||||
}
|
||||
@@ -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) =>
|
||||
{
|
||||
|
||||
@@ -7,5 +7,7 @@ public record UpdateUserWalletCommand : IRequest<Unit>
|
||||
public long UserId { get; init; }
|
||||
//موجودی
|
||||
public long Balance { get; init; }
|
||||
//موجودی شبکه
|
||||
public long NetworkBalance { get; init; }
|
||||
|
||||
}
|
||||
@@ -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) =>
|
||||
{
|
||||
|
||||
@@ -16,4 +16,6 @@ public record GetAllUserWalletByFilterQuery : IRequest<GetAllUserWalletByFilterR
|
||||
public long? UserId { get; set; }
|
||||
//موجودی
|
||||
public long? Balance { get; set; }
|
||||
//موجودی شبکه
|
||||
public long NetworkBalance { get; set; }
|
||||
}
|
||||
|
||||
@@ -14,4 +14,6 @@ public class GetAllUserWalletByFilterResponseDto
|
||||
public long UserId { get; set; }
|
||||
//موجودی
|
||||
public long Balance { get; set; }
|
||||
//موجودی شبکه
|
||||
public long NetworkBalance { get; set; }
|
||||
}
|
||||
|
||||
@@ -7,5 +7,7 @@ public class GetUserWalletResponseDto
|
||||
public long UserId { get; set; }
|
||||
//موجودی
|
||||
public long Balance { get; set; }
|
||||
//موجودی شبکه
|
||||
public long NetworkBalance { get; set; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user