Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventTypeKfCreateSession = "kf_create_session" // 接入会话 EventTypeKfCloseSession = "kf_close_session" // 关闭会话 EventTypeKfSwitchSession = "kf_switch_session" // 转接会话 )
Variables ¶
This section is empty.
Functions ¶
func CloseSession ¶
关闭会话
openId: 必须, 客户openid kfAccount: 必须, 完整客服账号,格式为:账号前缀@公众号微信号 text: 可选, 附加信息,文本会展示在客服人员的多客服客户端
Types ¶
type KfCloseSessionEvent ¶
type KfCloseSessionEvent struct { XMLName struct{} `xml:"xml" json:"-"` mp.MessageHeader Event string `xml:"Event" json:"Event"` KfAccount string `xml:"KfAccount" json:"KfAccount"` }
func GetKfCloseSessionEvent ¶
func GetKfCloseSessionEvent(msg *mp.MixedMessage) *KfCloseSessionEvent
type KfCreateSessionEvent ¶
type KfCreateSessionEvent struct { XMLName struct{} `xml:"xml" json:"-"` mp.MessageHeader Event string `xml:"Event" json:"Event"` KfAccount string `xml:"KfAccount" json:"KfAccount"` }
func GetKfCreateSessionEvent ¶
func GetKfCreateSessionEvent(msg *mp.MixedMessage) *KfCreateSessionEvent
type KfSwitchSessionEvent ¶
type KfSwitchSessionEvent struct { XMLName struct{} `xml:"xml" json:"-"` mp.MessageHeader Event string `xml:"Event" json:"Event"` FromKfAccount string `xml:"FromKfAccount" json:"FromKfAccount"` ToKfAccount string `xml:"ToKfAccount" json:"ToKfAccount"` }
func GetKfSwitchSessionEvent ¶
func GetKfSwitchSessionEvent(msg *mp.MixedMessage) *KfSwitchSessionEvent
Click to show internal directories.
Click to hide internal directories.