You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
431 B

syntax = "proto3";
option go_package = "./codes";
// 定义 ProductInfo 消息
message ProductInfoResponse {
string name = 1;
int64 int64 = 2;
bool is_sale = 3;
}
// rpc 方法 ProductInfo 需要的参数消息
message ProductInfoRequest {
int64 int64 = 1;
}
// 定义 Product 服务
service Product {
// 获取产品信息
rpc ProductInfo (ProductInfoRequest) returns (ProductInfoResponse) {}
}