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.

23 lines
534 B

3 years ago
  1. syntax = "proto3";
  2. package orderrpcv2;
  3. // 请求结构
  4. message Request {
  5. string data = 1;
  6. string time = 2;
  7. string sign = 3;
  8. }
  9. // 响应结构
  10. message Response {
  11. string data = 1;
  12. string time = 2;
  13. string sign = 3;
  14. }
  15. // rpc方法
  16. service OrderService {
  17. rpc create (Request) returns (Response); // 创建订单
  18. rpc createByCart (Request) returns (Response); // 创建订单
  19. rpc cancel (Request) returns (Response); // 取消订单
  20. rpc autoReceive(Request) returns(Response); //自动收货
  21. }