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
471 B

2 years ago
  1. syntax = "proto3";
  2. package pay;
  3. // 配置信息请求结构
  4. message PayRequest {
  5. string data = 1;
  6. string time = 2;
  7. string sign = 3;
  8. }
  9. // 配置信息响应结构
  10. message PayResponse {
  11. string data = 1;
  12. string time = 2;
  13. string sign = 3;
  14. }
  15. // rpc方法
  16. service PayService {
  17. rpc payToBusiness (PayRequest) returns (PayResponse); // 用户各商家支付
  18. rpc payToUser (PayRequest) returns (PayResponse); // 商家向用户支付(退款)
  19. }