Generator Changes at 11/17/2025 11:53:47 PM +03:30
This commit is contained in:
98
src/CMSMicroservice.Protobuf/Protos/pruductcategory.proto
Normal file
98
src/CMSMicroservice.Protobuf/Protos/pruductcategory.proto
Normal file
@@ -0,0 +1,98 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package pruductcategory;
|
||||
|
||||
import "public_messages.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
option csharp_namespace = "CMSMicroservice.Protobuf.Protos.PruductCategory";
|
||||
|
||||
service PruductCategoryContract
|
||||
{
|
||||
rpc CreateNewPruductCategory(CreateNewPruductCategoryRequest) returns (CreateNewPruductCategoryResponse){
|
||||
option (google.api.http) = {
|
||||
post: "/CreateNewPruductCategory"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc UpdatePruductCategory(UpdatePruductCategoryRequest) returns (google.protobuf.Empty){
|
||||
option (google.api.http) = {
|
||||
put: "/UpdatePruductCategory"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc DeletePruductCategory(DeletePruductCategoryRequest) returns (google.protobuf.Empty){
|
||||
option (google.api.http) = {
|
||||
delete: "/DeletePruductCategory"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc GetPruductCategory(GetPruductCategoryRequest) returns (GetPruductCategoryResponse){
|
||||
option (google.api.http) = {
|
||||
get: "/GetPruductCategory"
|
||||
|
||||
};
|
||||
};
|
||||
rpc GetAllPruductCategoryByFilter(GetAllPruductCategoryByFilterRequest) returns (GetAllPruductCategoryByFilterResponse){
|
||||
option (google.api.http) = {
|
||||
get: "/GetAllPruductCategoryByFilter"
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
message CreateNewPruductCategoryRequest
|
||||
{
|
||||
string product_id = 1;
|
||||
string category_id = 2;
|
||||
}
|
||||
message CreateNewPruductCategoryResponse
|
||||
{
|
||||
int64 id = 1;
|
||||
}
|
||||
message UpdatePruductCategoryRequest
|
||||
{
|
||||
int64 id = 1;
|
||||
string product_id = 2;
|
||||
string category_id = 3;
|
||||
}
|
||||
message DeletePruductCategoryRequest
|
||||
{
|
||||
int64 id = 1;
|
||||
}
|
||||
message GetPruductCategoryRequest
|
||||
{
|
||||
int64 id = 1;
|
||||
}
|
||||
message GetPruductCategoryResponse
|
||||
{
|
||||
int64 id = 1;
|
||||
string product_id = 2;
|
||||
string category_id = 3;
|
||||
}
|
||||
message GetAllPruductCategoryByFilterRequest
|
||||
{
|
||||
messages.PaginationState pagination_state = 1;
|
||||
google.protobuf.StringValue sort_by = 2;
|
||||
GetAllPruductCategoryByFilterFilter filter = 3;
|
||||
}
|
||||
message GetAllPruductCategoryByFilterFilter
|
||||
{
|
||||
google.protobuf.Int64Value id = 1;
|
||||
google.protobuf.StringValue product_id = 2;
|
||||
google.protobuf.StringValue category_id = 3;
|
||||
}
|
||||
message GetAllPruductCategoryByFilterResponse
|
||||
{
|
||||
messages.MetaData meta_data = 1;
|
||||
repeated GetAllPruductCategoryByFilterResponseModel models = 2;
|
||||
}
|
||||
message GetAllPruductCategoryByFilterResponseModel
|
||||
{
|
||||
int64 id = 1;
|
||||
string product_id = 2;
|
||||
string category_id = 3;
|
||||
}
|
||||
Reference in New Issue
Block a user