1234567891011121314151617181920 |
- syntax = "proto3"; // 指定proto版本
- // 指定golang包名
- option go_package = ".;service";
- //定义rpc服务
- service SendMessage {
- rpc Distribution (DistributionRequest) returns (DistributionResponse) {}
- }
- // HelloRequest 请求内容
- message DistributionRequest {
- repeated int64 Users = 1;
- }
- // HelloResponse 响应内容
- message DistributionResponse{
- int64 code = 1;
- }
|