|
|
- 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); // 创建订单
- }
|