github.com/kaydxh/golang@v0.0.131/pkg/grpc-gateway/date/date.proto (about) 1 syntax = "proto3"; 2 3 package sea.api.v1.date; 4 import "google/protobuf/descriptor.proto"; 5 // import 6 // "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/annotations.proto"; 7 // import "github.com/mwitkow/go-proto-validators/validator.proto"; 8 9 option go_package = "github.com/kaydxh/golang/pkg/grpc-gateway/date;date"; 10 11 service DateService { 12 rpc Now(DateRequest) returns (DateResponse) { 13 // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { 14 // tags: "query date" 15 // consumes: "" 16 // produces: "application/json" 17 // description: "return date of the node\n" 18 // }; 19 }; 20 } 21 22 message DateRequest { 23 string request_id = 1; 24 } 25 26 message DateResponse { 27 string request_id = 1 [json_name = "RequestId"]; 28 string date = 2; 29 }