github.com/kaydxh/golang@v0.0.131/go/net/grpc/example/data.proto (about) 1 syntax = "proto3"; 2 3 package sea.api.date; 4 import "google/protobuf/descriptor.proto"; 5 6 option go_package = "github.com/kaydxh/sea/api/openapi-spec/date;date"; 7 8 service DateService { 9 // 生成当前时间 10 rpc Now(NowRequest) returns (NowResponse) {}; 11 } 12 13 message NowRequest { 14 string request_id = 1 [json_name = "RequestId"]; //请求ID 15 } 16 17 message NowResponse { 18 string request_id = 1 [json_name = "RequestId"]; // 请求ID 19 string date = 2 [json_name = "Date"]; //当前时间 20 } 21