99 lines
2.6 KiB
Protocol Buffer
99 lines
2.6 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package productgallerys;
|
|
|
|
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.ProductGallerys";
|
|
|
|
service ProductGallerysContract
|
|
{
|
|
rpc CreateNewProductGallerys(CreateNewProductGallerysRequest) returns (CreateNewProductGallerysResponse){
|
|
option (google.api.http) = {
|
|
post: "/CreateNewProductGallerys"
|
|
body: "*"
|
|
};
|
|
};
|
|
rpc UpdateProductGallerys(UpdateProductGallerysRequest) returns (google.protobuf.Empty){
|
|
option (google.api.http) = {
|
|
put: "/UpdateProductGallerys"
|
|
body: "*"
|
|
};
|
|
};
|
|
rpc DeleteProductGallerys(DeleteProductGallerysRequest) returns (google.protobuf.Empty){
|
|
option (google.api.http) = {
|
|
delete: "/DeleteProductGallerys"
|
|
body: "*"
|
|
};
|
|
};
|
|
rpc GetProductGallerys(GetProductGallerysRequest) returns (GetProductGallerysResponse){
|
|
option (google.api.http) = {
|
|
get: "/GetProductGallerys"
|
|
|
|
};
|
|
};
|
|
rpc GetAllProductGallerysByFilter(GetAllProductGallerysByFilterRequest) returns (GetAllProductGallerysByFilterResponse){
|
|
option (google.api.http) = {
|
|
get: "/GetAllProductGallerysByFilter"
|
|
|
|
};
|
|
};
|
|
}
|
|
message CreateNewProductGallerysRequest
|
|
{
|
|
int64 product_image_id = 1;
|
|
int64 product_id = 2;
|
|
}
|
|
message CreateNewProductGallerysResponse
|
|
{
|
|
int64 id = 1;
|
|
}
|
|
message UpdateProductGallerysRequest
|
|
{
|
|
int64 id = 1;
|
|
int64 product_image_id = 2;
|
|
int64 product_id = 3;
|
|
}
|
|
message DeleteProductGallerysRequest
|
|
{
|
|
int64 id = 1;
|
|
}
|
|
message GetProductGallerysRequest
|
|
{
|
|
int64 id = 1;
|
|
}
|
|
message GetProductGallerysResponse
|
|
{
|
|
int64 id = 1;
|
|
int64 product_image_id = 2;
|
|
int64 product_id = 3;
|
|
}
|
|
message GetAllProductGallerysByFilterRequest
|
|
{
|
|
messages.PaginationState pagination_state = 1;
|
|
google.protobuf.StringValue sort_by = 2;
|
|
GetAllProductGallerysByFilterFilter filter = 3;
|
|
}
|
|
message GetAllProductGallerysByFilterFilter
|
|
{
|
|
google.protobuf.Int64Value id = 1;
|
|
google.protobuf.Int64Value product_image_id = 2;
|
|
google.protobuf.Int64Value product_id = 3;
|
|
}
|
|
message GetAllProductGallerysByFilterResponse
|
|
{
|
|
messages.MetaData meta_data = 1;
|
|
repeated GetAllProductGallerysByFilterResponseModel models = 2;
|
|
}
|
|
message GetAllProductGallerysByFilterResponseModel
|
|
{
|
|
int64 id = 1;
|
|
int64 product_image_id = 2;
|
|
int64 product_id = 3;
|
|
}
|