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.
|
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); //自动收货
|
|
}
|