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.

22 lines
462 B

syntax = "proto3";
package order;
// 下单请求结构
message CreateRequest {
string data = 1;
string time = 2;
string sign = 3;
}
// 下单响应结构
message CreateResponse {
string data = 1; //订单号
string time = 2;
string sign = 3;
}
// rpc方法
service OrderService {
rpc create (CreateRequest) returns (CreateResponse); // 创建订单
rpc createByCart (CreateRequest) returns (CreateResponse); // 创建订单
}