微信接口的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.

31 lines
1.2 KiB

3 years ago
3 years ago
  1. syntax = "proto3";
  2. package weixinrpc;
  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 WeixinRpcService {
  17. rpc getAccessToken (Request) returns (Response); // 查询access token
  18. rpc sendMiniappSubscribeMessage (Request) returns (Response); // 发送小程序订阅消息
  19. rpc sendUniformMessage(Request) returns (Response); // 发送统一服务消息
  20. rpc getMiniAppOpenid(Request) returns (Response); // 获取用户在小程序的openid
  21. rpc getMpOpenid(Request) returns (Response); // 获取用户在公众号的openid
  22. rpc getAppOpenid(Request) returns (Response); // 获取app的openid
  23. rpc getMpUserInfo(Request) returns (Response); //公众号获取用户信息
  24. rpc getMiniappQrcode(Request) returns (Response); //获取小程序码
  25. rpc imgSecCheck(Request) returns (Response); //检测图片内容是否合法
  26. rpc msgSecCheck(Request) returns (Response); //检测文本内容是否合法
  27. rpc payRefund(Request) returns (Response); //v3支付退款
  28. }