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 Id { get; init; }
|
||||||
//
|
//
|
||||||
public long ProductId { get; init; }
|
|
||||||
//
|
|
||||||
public long UserId { get; init; }
|
|
||||||
//
|
|
||||||
public int Count { get; init; }
|
public int Count { get; init; }
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -5,10 +5,6 @@ public class UpdateUserCartsCommandValidator : AbstractValidator<UpdateUserCarts
|
|||||||
{
|
{
|
||||||
RuleFor(model => model.Id)
|
RuleFor(model => model.Id)
|
||||||
.NotNull();
|
.NotNull();
|
||||||
RuleFor(model => model.ProductId)
|
|
||||||
.NotNull();
|
|
||||||
RuleFor(model => model.UserId)
|
|
||||||
.NotNull();
|
|
||||||
RuleFor(model => model.Count)
|
RuleFor(model => model.Count)
|
||||||
.NotNull();
|
.NotNull();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,9 +57,7 @@ message CreateNewUserCartsResponse
|
|||||||
message UpdateUserCartsRequest
|
message UpdateUserCartsRequest
|
||||||
{
|
{
|
||||||
int64 id = 1;
|
int64 id = 1;
|
||||||
int64 product_id = 2;
|
int32 count = 2;
|
||||||
int64 user_id = 3;
|
|
||||||
int32 count = 4;
|
|
||||||
}
|
}
|
||||||
message DeleteUserCartsRequest
|
message DeleteUserCartsRequest
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,10 +8,6 @@ public class UpdateUserCartsRequestValidator : AbstractValidator<UpdateUserCarts
|
|||||||
{
|
{
|
||||||
RuleFor(model => model.Id)
|
RuleFor(model => model.Id)
|
||||||
.NotNull();
|
.NotNull();
|
||||||
RuleFor(model => model.ProductId)
|
|
||||||
.NotNull();
|
|
||||||
RuleFor(model => model.UserId)
|
|
||||||
.NotNull();
|
|
||||||
RuleFor(model => model.Count)
|
RuleFor(model => model.Count)
|
||||||
.NotNull();
|
.NotNull();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user