wx

package
v0.0.0-...-a7c74f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2020 License: GPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	FromUserName CDATAText
	ToUserName   CDATAText
	MsgType      CDATAText
	CreateTime   CDATAText
}

func (*Base) InitBaseData

func (b *Base) InitBaseData(w *WeixinClient, msgtype string)

type CDATAText

type CDATAText struct {
	Text string `xml:",innerxml"`
}

type TextMessage

type TextMessage struct {
	XMLName xml.Name `xml:"xml"`
	Base
	Content CDATAText
}

type WeixinClient

type WeixinClient struct {
	Token          string
	Query          weixinQuery
	Message        map[string]interface{}
	Request        *http.Request
	ResponseWriter http.ResponseWriter
	Methods        map[string]func() bool
}

func NewClient

func NewClient(r *http.Request, w http.ResponseWriter, token string) (*WeixinClient, error)

func (*WeixinClient) Run

func (this *WeixinClient) Run()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL