Browse Source

增加获取公众号OPENID与获取公众号用户信息方法

master
guzeng 2 years ago
parent
commit
92944dc02d
2 changed files with 9 additions and 0 deletions
  1. +8
    -0
      weixin.pb.go
  2. +1
    -0
      weixin.proto

+ 8
- 0
weixin.pb.go View File

@ -102,6 +102,8 @@ type WeixinRpcService interface {
SendMiniappSubscribeMessage(in *Request, out *Response) error
SendUniformMessage(in *Request, out *Response) error
GetMiniAppOpenid(in *Request, out *Response) error
GetMpOpenid(in *Request, out *Response) error
GetMpUserInfo(in *Request, out *Response) error
}
// AcceptWeixinRpcServiceClient accepts connections on the listener and serves requests
@ -185,6 +187,12 @@ func (c *WeixinRpcServiceClient) SendUniformMessage(in *Request, out *Response)
func (c *WeixinRpcServiceClient) GetMiniAppOpenid(in *Request, out *Response) error {
return c.Call("WeixinRpcService.GetMiniAppOpenid", in, out)
}
func (c *WeixinRpcServiceClient) GetMpOpenid(in *Request, out *Response) error {
return c.Call("WeixinRpcService.GetMpOpenid", in, out)
}
func (c *WeixinRpcServiceClient) GetMpUserInfo(in *Request, out *Response) error {
return c.Call("WeixinRpcService.GetMpUserInfo", in, out)
}
// DialWeixinRpcService connects to an WeixinRpcService at the specified network address.
func DialWeixinRpcService(network, addr string) (*WeixinRpcServiceClient, *rpc.Client, error) {


+ 1
- 0
weixin.proto View File

@ -22,5 +22,6 @@ service WeixinRpcService {
rpc sendMiniappSubscribeMessage (Request) returns (Response); //
rpc sendUniformMessage(Request) returns (Response); //
rpc getMiniAppOpenid(Request) returns (Response); // openid
rpc getMpOpenid(Request) returns (Response); // openid
rpc getMpUserInfo(Request) returns (Response); //
}

Loading…
Cancel
Save