wx_open

package
v0.0.0-...-3b54ddd Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README

wx_open

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	ToUserName   string `xml:"ToUserName"`
	FromUserName string `xml:"FromUserName"`
	CreateTime   string `xml:"CreateTime"`
	MsgType      string `xml:"MsgType"`   // 消息类型: event, text ....
	Event        string `xml:"Event"`     // 事件类型
	EventKey     string `xml:"EventKey"`  // 事件KEY值
	Ticket       string `xml:"Ticket"`    // 二维码的ticket,可用来换取二维码图片
	Latitude     string `xml:"Latitude"`  // 地理位置纬度
	Longitude    string `xml:"Longitude"` // 地理位置经度
	Precision    string `xml:"Precision"` // 地理位置精度

	Content string `xml:"Content"` // 消息内容
	MsgId   string `xml:"MsgId"`
	Reason  string `xml:"Reason"`
}

更多资料请看微信公众平台文档: https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140454 事件消息结构体

type WxResponse

type WxResponse struct {
	ErrCode int    `json:"errcode"`
	ErrMsg  string `json:"errmsg"`
}

已知的接口都是这个错误格式, 可以统一处理

func (WxResponse) HasError

func (p WxResponse) HasError() error

type WxResponseErr

type WxResponseErr struct {
	ErrCode int    `json:"errcode"`
	ErrMsg  string `json:"errmsg"`
}

func (WxResponseErr) Error

func (p WxResponseErr) Error() string

Directories

Path Synopsis
获取授权方的帐号基本信息 - 公众号 - 小程序
获取授权方的帐号基本信息 - 公众号 - 小程序

Jump to

Keyboard shortcuts

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