event

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2015 License: GPL-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReceiveClickvent

func ReceiveClickvent(content string) string

func ReceiveEvent

func ReceiveEvent(content string, msgtype string) string

func ReceiveLocationvent

func ReceiveLocationvent(content string) string

func ReceiveScanEvent

func ReceiveScanEvent(content string) string

func ReceiveSubscribeEvent

func ReceiveSubscribeEvent(content string) string

func ReceiveUnsubscribeEvent

func ReceiveUnsubscribeEvent(content string) string

func ReceiveViewEvent

func ReceiveViewEvent(content string) string

func RegDB

func RegDB()

Types

type ClickEvent

type ClickEvent struct {
	Id           int64
	ToUserName   string    `xml:"ToUserName"`
	FromUserName string    `xml:"FromUserName"`
	CreateTime   int       `xml:"CreateTime"`
	MsgType      string    `xml:"MsgType"`
	Event        string    `xml:"Event"`
	EventKey     string    `xml:"EventKey"`
	Created      time.Time `orm:"auto_now_add;type(datetime)"`
}

点击事件结构体

func (*ClickEvent) Insert

func (this *ClickEvent) Insert() error

type LocationEvent

type LocationEvent struct {
	Id           int64
	ToUserName   string    `xml:"ToUserName"`
	FromUserName string    `xml:"FromUserName"`
	CreateTime   int       `xml:"CreateTime"`
	MsgType      string    `xml:"MsgType"`
	Event        string    `xml:"Event"`
	Latitude     float64   `xml:"Latitude"`
	Longitude    float64   `xml:"Longitude"`
	Precision    int       `xml:"Precision"`
	Created      time.Time `orm:"auto_now_add;type(datetime)"`
}

地理位置推送事件结构体

func (*LocationEvent) Insert

func (this *LocationEvent) Insert() error

type ScanEvent

type ScanEvent struct {
	Id           int64
	ToUserName   string    `xml:"ToUserName"`
	FromUserName string    `xml:"FromUserName"`
	CreateTime   int       `xml:"CreateTime"`
	MsgType      string    `xml:"MsgType"`
	Event        string    `xml:"Event"`
	EventKey     string    `xml:"EventKey"`
	Ticket       string    `xml:"Ticket"`
	Created      time.Time `orm:"auto_now_add;type(datetime)"`
}

二维码扫码事件结构体

func (*ScanEvent) Insert

func (this *ScanEvent) Insert() error

type ScribeEvent

type ScribeEvent struct {
	Id           int64
	ToUserName   string    `xml:"ToUserName"`
	FromUserName string    `xml:"FromUserName"`
	CreateTime   int       `xml:"CreateTime"`
	MsgType      string    `xml:"MsgType"`
	Event        string    `xml:"Event"`
	Created      time.Time `orm:"auto_now_add;type(datetime)"`
}

func (*ScribeEvent) Insert

func (this *ScribeEvent) Insert() error

type SubscribeEvent

type SubscribeEvent struct {
	Id           int64
	ToUserName   string    `xml:"ToUserName"`
	FromUserName string    `xml:"FromUserName"`
	CreateTime   int       `xml:"CreateTime"`
	MsgType      string    `xml:"MsgType"`
	Event        string    `xml:"Event"`
	EventKey     int32     `xml:"EventKey"`
	Ticket       string    `xml:"Ticket"`
	Created      time.Time `orm:"auto_now_add;type(datetime)"`
}

func (*SubscribeEvent) Insert

func (this *SubscribeEvent) Insert() error

type ViewEvent

type ViewEvent struct {
	Id           int64
	ToUserName   string    `xml:"ToUserName"`
	FromUserName string    `xml:"FromUserName"`
	CreateTime   int       `xml:"CreateTime"`
	MsgType      string    `xml:"MsgType"`
	Event        string    `xml:"Event"`
	EventKey     string    `xml:"EventKey"`
	Created      time.Time `orm:"auto_now_add;type(datetime)"`
}

func (*ViewEvent) Insert

func (this *ViewEvent) Insert() error

Jump to

Keyboard shortcuts

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