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
@@ -7,6 +7,10 @@ public record CreateNewUserWalletChangeLogCommand : IRequest<CreateNewUserWallet
public long CurrentBalance { get; init; }
//تغییر موجودی
public long ChangeValue { get; init; }
//موجودی جاری شبکه
public long CurrentNetworkBalance { get; init; }
//تغییر موجودی شبکه
public long ChangeNerworkValue { get; init; }
//افزایشی؟
public bool IsIncrease { get; init; }
//شناسه ارجاع
@@ -9,6 +9,10 @@ public class CreateNewUserWalletChangeLogCommandValidator : AbstractValidator<Cr
.NotNull();
RuleFor(model => model.ChangeValue)
.NotNull();
RuleFor(model => model.CurrentNetworkBalance)
.NotNull();
RuleFor(model => model.ChangeNerworkValue)
.NotNull();
RuleFor(model => model.IsIncrease)
.NotNull();
}
@@ -9,6 +9,10 @@ public record UpdateUserWalletChangeLogCommand : IRequest<Unit>
public long CurrentBalance { get; init; }
//تغییر موجودی
public long ChangeValue { get; init; }
//موجودی جاری شبکه
public long CurrentNetworkBalance { get; init; }
//تغییر موجودی شبکه
public long ChangeNerworkValue { get; init; }
//افزایشی؟
public bool IsIncrease { get; init; }
//شناسه ارجاع
@@ -11,6 +11,10 @@ public class UpdateUserWalletChangeLogCommandValidator : AbstractValidator<Updat
.NotNull();
RuleFor(model => model.ChangeValue)
.NotNull();
RuleFor(model => model.CurrentNetworkBalance)
.NotNull();
RuleFor(model => model.ChangeNerworkValue)
.NotNull();
RuleFor(model => model.IsIncrease)
.NotNull();
}