2.0订单rpc数据结构
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.

25 lines
597 B

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); //自动收货
rpc Get (Request) returns (Response); // 使用id查询
}