Documentation ¶
Index ¶
- func ReceiveClickvent(content string) string
- func ReceiveEvent(content string, msgtype string) string
- func ReceiveLocationvent(content string) string
- func ReceiveScanEvent(content string) string
- func ReceiveSubscribeEvent(content string) string
- func ReceiveUnsubscribeEvent(content string) string
- func ReceiveViewEvent(content string) string
- func RegDB()
- type ClickEvent
- type LocationEvent
- type ScanEvent
- type ScribeEvent
- type SubscribeEvent
- type ViewEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReceiveClickvent ¶
func ReceiveEvent ¶
func ReceiveLocationvent ¶
func ReceiveScanEvent ¶
func ReceiveSubscribeEvent ¶
func ReceiveUnsubscribeEvent ¶
func ReceiveViewEvent ¶
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)"` }
二维码扫码事件结构体
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 ¶
Click to show internal directories.
Click to hide internal directories.