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