Generator Changes at 11/20/2025 11:12:33 PM +03:30

This commit is contained in:
masoodafar-web
2025-11-20 23:14:30 +03:30
parent a1c934c2de
commit a5bfb884bb
4 changed files with 1 additions and 15 deletions

View File

@@ -4,10 +4,6 @@ public record UpdateUserCartsCommand : IRequest<Unit>
//
public long Id { get; init; }
//
public long ProductId { get; init; }
//
public long UserId { get; init; }
//
public int Count { get; init; }
}

View File

@@ -5,10 +5,6 @@ public class UpdateUserCartsCommandValidator : AbstractValidator<UpdateUserCarts
{
RuleFor(model => model.Id)
.NotNull();
RuleFor(model => model.ProductId)
.NotNull();
RuleFor(model => model.UserId)
.NotNull();
RuleFor(model => model.Count)
.NotNull();
}

View File

@@ -57,9 +57,7 @@ message CreateNewUserCartsResponse
message UpdateUserCartsRequest
{
int64 id = 1;
int64 product_id = 2;
int64 user_id = 3;
int32 count = 4;
int32 count = 2;
}
message DeleteUserCartsRequest
{

View File

@@ -8,10 +8,6 @@ public class UpdateUserCartsRequestValidator : AbstractValidator<UpdateUserCarts
{
RuleFor(model => model.Id)
.NotNull();
RuleFor(model => model.ProductId)
.NotNull();
RuleFor(model => model.UserId)
.NotNull();
RuleFor(model => model.Count)
.NotNull();
}