Skip to content

Instantly share code, notes, and snippets.

@argentinaluiz
Last active October 22, 2023 00:15
Show Gist options
  • Save argentinaluiz/8a2e1a7a32da3d1b107d88ec9f1007b2 to your computer and use it in GitHub Desktop.
Save argentinaluiz/8a2e1a7a32da3d1b107d88ec9f1007b2 to your computer and use it in GitHub Desktop.
Protofile do desafio da Imersão Full Cycle
syntax = "proto3";
package github.com.codeedu.codepix;
option go_package = "protofiles/pb";
service ProductService {
rpc CreateProduct (CreateProductRequest) returns (CreateProductResponse) {};
rpc FindProducts(FindProductsRequest) returns (FindProductsResponse) {};
}
message CreateProductRequest {
string name = 1;
string description = 2;
float price = 3;
}
message Product {
int32 id = 1;
string name = 2;
string description = 3;
float price = 4;
}
message CreateProductResponse {
Product product = 1;
}
message FindProductsRequest{
}
message FindProductsResponse{
repeated Product products = 1;
}
@argentinaluiz
Copy link
Author

@Chavozoom e @dudu148877 obrigado, já fiz a correção

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment