mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-10 15:52:26 +08:00
feature: 小程序增加客服消息 (#319)
* add miniprogram customer_message * fix golint comment * rm unnecessary unmarshal in Send Co-authored-by: huangxiang <huangxiang@didichuxing.com>
This commit is contained in:
21
miniprogram/message/consts.go
Normal file
21
miniprogram/message/consts.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package message
|
||||
|
||||
// MsgType 基本消息类型
|
||||
type MsgType string
|
||||
|
||||
// EventType 事件类型
|
||||
type EventType string
|
||||
|
||||
// InfoType 第三方平台授权事件类型
|
||||
type InfoType string
|
||||
|
||||
const (
|
||||
//MsgTypeText 文本消息
|
||||
MsgTypeText MsgType = "text"
|
||||
//MsgTypeImage 图片消息
|
||||
MsgTypeImage = "image"
|
||||
//MsgTypeLink 图文链接
|
||||
MsgTypeLink = "link"
|
||||
//MsgTypeMiniProgramPage 小程序卡片
|
||||
MsgTypeMiniProgramPage = "miniprogrampage"
|
||||
)
|
||||
Reference in New Issue
Block a user