Last active
October 22, 2023 00:15
-
-
Save argentinaluiz/8a2e1a7a32da3d1b107d88ec9f1007b2 to your computer and use it in GitHub Desktop.
Protofile do desafio da Imersão Full Cycle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Chavozoom e @dudu148877 obrigado, já fiz a correção