Generator Changes at 11/20/2025 11:12:33 PM +03:30
This commit is contained in:
@@ -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; }
|
||||
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user