1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-05 13:12:26 +08:00

完善文档

This commit is contained in:
wenzl
2016-09-16 16:39:07 +08:00
parent 2bb40a640e
commit f09af81be0
7 changed files with 624 additions and 38 deletions

View File

@@ -29,21 +29,35 @@ const (
MsgTypeNews = "news"
//MsgTypeTransfer 表示消息消息转发到客服
MsgTypeTransfer = "transfer_customer_service"
//MsgTypeEvent 表示事件推送消息
MsgTypeEvent = "event"
)
const (
//EventSubscribe 订阅
EventSubscribe EventType = "subscribe"
//EventUnsubscribe 取消订阅
EventUnsubscribe EventType = "unsubscribe"
EventUnsubscribe = "unsubscribe"
//EventScan 用户已经关注公众号,则微信会将带场景值扫描事件推送给开发者
EventScan EventType = "SCAN"
EventScan = "SCAN"
//EventLocation 上报地理位置事件
EventLocation EventType = "LOCATION"
EventLocation = "LOCATION"
//EventClick 点击菜单拉取消息时的事件推送
EventClick EventType = "CLICK"
EventClick = "CLICK"
//EventView 点击菜单跳转链接时的事件推送
EventView EventType = "VIEW"
EventView = "VIEW"
//EventScancodePush 扫码推事件的事件推送
EventScancodePush = "scancode_push"
//EventScancodeWaitmsg 扫码推事件且弹出“消息接收中”提示框的事件推送
EventScancodeWaitmsg = "scancode_waitmsg"
//EventPicSysphoto 弹出系统拍照发图的事件推送
EventPicSysphoto = "pic_sysphoto"
//EventPicPhotoOrAlbum 弹出拍照或者相册发图的事件推送
EventPicPhotoOrAlbum = "pic_photo_or_album"
//EventPicWeixin 弹出微信相册发图器的事件推送
EventPicWeixin = "pic_weixin"
//EventLocationSelect 弹出地理位置选择器的事件推送
EventLocationSelect = "location_select"
)
//MixMessage 存放所有微信发送过来的消息和事件