syntax = "proto3"; package orderrpcv2; // 请求结构 message Request { string data = 1; string time = 2; string sign = 3; } // 响应结构 message Response { string data = 1; string time = 2; string sign = 3; } // rpc方法 service OrderService { rpc create (Request) returns (Response); // 创建订单 rpc createByCart (Request) returns (Response); // 创建订单 rpc cancel (Request) returns (Response); // 取消订单 rpc autoReceive(Request) returns(Response); //自动收货 }