|
@ -101,6 +101,7 @@ type WeixinRpcService interface { |
|
|
GetAccessToken(in *Request, out *Response) error |
|
|
GetAccessToken(in *Request, out *Response) error |
|
|
SendMiniprogramSubscribeMessage(in *Request, out *Response) error |
|
|
SendMiniprogramSubscribeMessage(in *Request, out *Response) error |
|
|
SendUniformMessage(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
|
|
|
// 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 { |
|
|
func (c *WeixinRpcServiceClient) SendUniformMessage(in *Request, out *Response) error { |
|
|
return c.Call("WeixinRpcService.SendUniformMessage", in, out) |
|
|
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.
|
|
|
// DialWeixinRpcService connects to an WeixinRpcService at the specified network address.
|
|
|
func DialWeixinRpcService(network, addr string) (*WeixinRpcServiceClient, *rpc.Client, error) { |
|
|
func DialWeixinRpcService(network, addr string) (*WeixinRpcServiceClient, *rpc.Client, error) { |
|
|