|
|
@ -101,6 +101,7 @@ type WeixinRpcService interface { |
|
|
|
GetAccessToken(in *Request, out *Response) error |
|
|
|
SendMiniprogramSubscribeMessage(in *Request, out *Response) error |
|
|
|
SendUniformMessage(in *Request, out *Response) error |
|
|
|
GetMiniAppOpenid(in *Request, out *Response) error |
|
|
|
} |
|
|
|
|
|
|
|
// AcceptWeixinRpcServiceClient accepts connections on the listener and serves requests
|
|
|
@ -181,6 +182,9 @@ func (c *WeixinRpcServiceClient) SendMiniprogramSubscribeMessage(in *Request, ou |
|
|
|
func (c *WeixinRpcServiceClient) SendUniformMessage(in *Request, out *Response) error { |
|
|
|
return c.Call("WeixinRpcService.SendUniformMessage", in, out) |
|
|
|
} |
|
|
|
func (c *WeixinRpcServiceClient) GetMiniAppOpenid(in *Request, out *Response) error { |
|
|
|
return c.Call("WeixinRpcService.GetMiniAppOpenid", in, out) |
|
|
|
} |
|
|
|
|
|
|
|
// DialWeixinRpcService connects to an WeixinRpcService at the specified network address.
|
|
|
|
func DialWeixinRpcService(network, addr string) (*WeixinRpcServiceClient, *rpc.Client, error) { |
|
|
|