Documentation ¶
Index ¶
- Variables
- func ReceiveImageMsg(content string) string
- func ReceiveLinkMsg(content string) string
- func ReceiveLocationMsg(content string) string
- func ReceiveMsg(content string, msgtype string) (r string)
- func ReceiveTextMsg(content string) string
- func ReceiveVideoMsg(content string) string
- func ReceiveVoiceMsg(content string) string
- func RegDB()
- type ImageMsg
- type LinkMsg
- type LocationMsg
- type TextMsg
- type VideoMsg
- type VoiceMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var CKLog *logs.BeeLogger
Functions ¶
func ReceiveImageMsg ¶
func ReceiveLinkMsg ¶
func ReceiveLocationMsg ¶
func ReceiveMsg ¶
func ReceiveTextMsg ¶
func ReceiveVideoMsg ¶
func ReceiveVoiceMsg ¶
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)"` }
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)"` }
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) ReplyTextMsg ¶
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)"` }
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)"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.