|
|
@ -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) { |
|
|
|