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

syntax = "proto3";
package weixinrpc;
// 配置信息请求结构
message Request {
string data = 1;
string time = 2;
string sign = 3;
}
// 配置信息响应结构
message Response {
string data = 1;
string time = 2;
string sign = 3;
}
// rpc方法
service WeixinRpcService {
rpc getAccessToken (Request) returns (Response); // 查询access token
rpc sendMiniappSubscribeMessage (Request) returns (Response); // 发送小程序订阅消息
rpc sendUniformMessage(Request) returns (Response); // 发送统一服务消息
rpc getMiniAppOpenid(Request) returns (Response); // 获取用户在小程序的openid
rpc getMpOpenid(Request) returns (Response); // 获取用户在公众号的openid
rpc getAppOpenid(Request) returns (Response); // 获取app的openid
rpc getMpUserInfo(Request) returns (Response); //公众号获取用户信息
rpc getMiniappQrcode(Request) returns (Response); //获取小程序码
rpc imgSecCheck(Request) returns (Response); //检测图片内容是否合法
rpc msgSecCheck(Request) returns (Response); //检测文本内容是否合法
}