shakearound

package
v2.0.0-...-fa408c6 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

摇一摇周边

Index

Constants

View Source
const (
	// 推送到公众号URL上的事件类型
	EventTypeUserShake core.EventType = "ShakearoundUserShake" // 摇一摇事件通知
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AroundBeacon

type AroundBeacon struct {
	UUID     string  `xml:"Uuid"     json:"Uuid"`
	Major    int     `xml:"Major"    json:"Major"`
	Minor    int     `xml:"Minor"    json:"Minor"`
	Distance float64 `xml:"Distance" json:"Distance"`
}

和 gopkg.in/chanxuehong/wechat.v2/mp/core.MixedMsg.AroundBeacon 一样, 同步修改

type ChosenBeacon

type ChosenBeacon struct {
	UUID     string  `xml:"Uuid"     json:"Uuid"`
	Major    int     `xml:"Major"    json:"Major"`
	Minor    int     `xml:"Minor"    json:"Minor"`
	Distance float64 `xml:"Distance" json:"Distance"`
}

和 gopkg.in/chanxuehong/wechat.v2/mp/core.MixedMsg.ChosenBeacon 一样, 同步修改

type UserShakeEvent

type UserShakeEvent struct {
	XMLName struct{} `xml:"xml" json:"-"`
	core.MsgHeader

	EventType core.EventType `xml:"Event" json:"Event"` // 事件类型,ShakearoundUserShake

	ChosenBeacon  *ChosenBeacon  `xml:"ChosenBeacon,omitempty" json:"ChosenBeacon,omitempty"`
	AroundBeacons []AroundBeacon `xml:"AroundBeacons>AroundBeacon,omitempty" json:"AroundBeacons,omitempty"`
}

func GetUserShakeEvent

func GetUserShakeEvent(msg *core.MixedMsg) *UserShakeEvent

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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