Generator Changes at 11/20/2025 6:27:21 PM +03:30
This commit is contained in:
@@ -46,8 +46,8 @@ service PruductCategoryContract
|
||||
}
|
||||
message CreateNewPruductCategoryRequest
|
||||
{
|
||||
string product_id = 1;
|
||||
string category_id = 2;
|
||||
int64 product_id = 1;
|
||||
int64 category_id = 2;
|
||||
}
|
||||
message CreateNewPruductCategoryResponse
|
||||
{
|
||||
@@ -56,8 +56,8 @@ message CreateNewPruductCategoryResponse
|
||||
message UpdatePruductCategoryRequest
|
||||
{
|
||||
int64 id = 1;
|
||||
string product_id = 2;
|
||||
string category_id = 3;
|
||||
int64 product_id = 2;
|
||||
int64 category_id = 3;
|
||||
}
|
||||
message DeletePruductCategoryRequest
|
||||
{
|
||||
@@ -70,8 +70,8 @@ message GetPruductCategoryRequest
|
||||
message GetPruductCategoryResponse
|
||||
{
|
||||
int64 id = 1;
|
||||
string product_id = 2;
|
||||
string category_id = 3;
|
||||
int64 product_id = 2;
|
||||
int64 category_id = 3;
|
||||
}
|
||||
message GetAllPruductCategoryByFilterRequest
|
||||
{
|
||||
@@ -82,8 +82,8 @@ message GetAllPruductCategoryByFilterRequest
|
||||
message GetAllPruductCategoryByFilterFilter
|
||||
{
|
||||
google.protobuf.Int64Value id = 1;
|
||||
google.protobuf.StringValue product_id = 2;
|
||||
google.protobuf.StringValue category_id = 3;
|
||||
google.protobuf.Int64Value product_id = 2;
|
||||
google.protobuf.Int64Value category_id = 3;
|
||||
}
|
||||
message GetAllPruductCategoryByFilterResponse
|
||||
{
|
||||
@@ -93,6 +93,6 @@ message GetAllPruductCategoryByFilterResponse
|
||||
message GetAllPruductCategoryByFilterResponseModel
|
||||
{
|
||||
int64 id = 1;
|
||||
string product_id = 2;
|
||||
string category_id = 3;
|
||||
int64 product_id = 2;
|
||||
int64 category_id = 3;
|
||||
}
|
||||
|
||||
@@ -46,8 +46,8 @@ service PruductTagContract
|
||||
}
|
||||
message CreateNewPruductTagRequest
|
||||
{
|
||||
string product_id = 1;
|
||||
string tag_id = 2;
|
||||
int64 product_id = 1;
|
||||
int64 tag_id = 2;
|
||||
}
|
||||
message CreateNewPruductTagResponse
|
||||
{
|
||||
@@ -56,8 +56,8 @@ message CreateNewPruductTagResponse
|
||||
message UpdatePruductTagRequest
|
||||
{
|
||||
int64 id = 1;
|
||||
string product_id = 2;
|
||||
string tag_id = 3;
|
||||
int64 product_id = 2;
|
||||
int64 tag_id = 3;
|
||||
}
|
||||
message DeletePruductTagRequest
|
||||
{
|
||||
@@ -70,8 +70,8 @@ message GetPruductTagRequest
|
||||
message GetPruductTagResponse
|
||||
{
|
||||
int64 id = 1;
|
||||
string product_id = 2;
|
||||
string tag_id = 3;
|
||||
int64 product_id = 2;
|
||||
int64 tag_id = 3;
|
||||
}
|
||||
message GetAllPruductTagByFilterRequest
|
||||
{
|
||||
@@ -82,8 +82,8 @@ message GetAllPruductTagByFilterRequest
|
||||
message GetAllPruductTagByFilterFilter
|
||||
{
|
||||
google.protobuf.Int64Value id = 1;
|
||||
google.protobuf.StringValue product_id = 2;
|
||||
google.protobuf.StringValue tag_id = 3;
|
||||
google.protobuf.Int64Value product_id = 2;
|
||||
google.protobuf.Int64Value tag_id = 3;
|
||||
}
|
||||
message GetAllPruductTagByFilterResponse
|
||||
{
|
||||
@@ -93,7 +93,6 @@ message GetAllPruductTagByFilterResponse
|
||||
message GetAllPruductTagByFilterResponseModel
|
||||
{
|
||||
int64 id = 1;
|
||||
string product_id = 2;
|
||||
string tag_id = 3;
|
||||
int64 product_id = 2;
|
||||
int64 tag_id = 3;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@ public class CreateNewPruductCategoryRequestValidator : AbstractValidator<Create
|
||||
public CreateNewPruductCategoryRequestValidator()
|
||||
{
|
||||
RuleFor(model => model.ProductId)
|
||||
.NotEmpty();
|
||||
.NotNull();
|
||||
RuleFor(model => model.CategoryId)
|
||||
.NotEmpty();
|
||||
.NotNull();
|
||||
}
|
||||
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
|
||||
{
|
||||
|
||||
@@ -9,9 +9,9 @@ public class UpdatePruductCategoryRequestValidator : AbstractValidator<UpdatePru
|
||||
RuleFor(model => model.Id)
|
||||
.NotNull();
|
||||
RuleFor(model => model.ProductId)
|
||||
.NotEmpty();
|
||||
.NotNull();
|
||||
RuleFor(model => model.CategoryId)
|
||||
.NotEmpty();
|
||||
.NotNull();
|
||||
}
|
||||
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
|
||||
{
|
||||
|
||||
@@ -7,9 +7,9 @@ public class CreateNewPruductTagRequestValidator : AbstractValidator<CreateNewPr
|
||||
public CreateNewPruductTagRequestValidator()
|
||||
{
|
||||
RuleFor(model => model.ProductId)
|
||||
.NotEmpty();
|
||||
.NotNull();
|
||||
RuleFor(model => model.TagId)
|
||||
.NotEmpty();
|
||||
.NotNull();
|
||||
}
|
||||
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
|
||||
{
|
||||
@@ -19,4 +19,3 @@ public class CreateNewPruductTagRequestValidator : AbstractValidator<CreateNewPr
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@ public class UpdatePruductTagRequestValidator : AbstractValidator<UpdatePruductT
|
||||
RuleFor(model => model.Id)
|
||||
.NotNull();
|
||||
RuleFor(model => model.ProductId)
|
||||
.NotEmpty();
|
||||
.NotNull();
|
||||
RuleFor(model => model.TagId)
|
||||
.NotEmpty();
|
||||
.NotNull();
|
||||
}
|
||||
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
|
||||
{
|
||||
@@ -21,4 +21,3 @@ public class UpdatePruductTagRequestValidator : AbstractValidator<UpdatePruductT
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user