msg

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

Functions

func ReceiveImageMsg

func ReceiveImageMsg(content string) string

func ReceiveLinkMsg

func ReceiveLinkMsg(content string) string

func ReceiveLocationMsg

func ReceiveLocationMsg(content string) string

func ReceiveMsg

func ReceiveMsg(content string, msgtype string) (r string)

func ReceiveTextMsg

func ReceiveTextMsg(content string) string

func ReceiveVideoMsg

func ReceiveVideoMsg(content string) string

func ReceiveVoiceMsg

func ReceiveVoiceMsg(content string) string

func RegDB

func RegDB()

Types

type ImageMsg

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

func (*ImageMsg) Insert

func (this *ImageMsg) Insert() error

type LinkMsg

type LinkMsg struct {
	Id           int64
	ToUserName   string    `xml: "ToUserName"`
	FromUserName string    `xml: "FromUserName"`
	CreateTime   int       `xml: "CreateTime"`
	MsgType      string    `xml: "MsgType"`
	Title        string    `xml: "Title"`
	Description  string    `xml: "Description"`
	Url          string    `xml: "Url"`
	MsgId        int64     `xml: "MsgId"`
	Created      time.Time `orm:"auto_now_add;type(datetime)"`
}

func (*LinkMsg) Insert

func (this *LinkMsg) Insert() error

type LocationMsg

type LocationMsg struct {
	Id           int64
	ToUserName   string    `xml: "ToUserName"`
	FromUserName string    `xml: "FromUserName"`
	CreateTime   int       `xml: "CreateTime"`
	MsgType      string    `xml: "MsgType"`
	Location_X   float64   `xml: "Location_X"`
	Location_Y   float64   `xml: "Location_Y"`
	Scale        int       `xml: "Scale"`
	Label        string    `xml: "Label"`
	MsgId        int64     `xml: "MsgId"`
	Created      time.Time `orm:"auto_now_add;type(datetime)"`
}

func (*LocationMsg) Insert

func (this *LocationMsg) Insert() error

type TextMsg

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

func (*TextMsg) Insert

func (this *TextMsg) Insert() error

func (*TextMsg) ReplyTextMsg

func (this *TextMsg) ReplyTextMsg(data string) string

type VideoMsg

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

func (*VideoMsg) Insert

func (this *VideoMsg) Insert() error

type VoiceMsg

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

func (*VoiceMsg) Insert

func (this *VoiceMsg) Insert() error

Jump to

Keyboard shortcuts

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