From 013f4ed5854a496b73395f5cd4ceac93324688fb Mon Sep 17 00:00:00 2001 From: wenzl Date: Wed, 25 Oct 2017 19:27:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=A2=E6=9C=8D=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E8=BD=AC=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- message/ransfer_customer.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 message/ransfer_customer.go diff --git a/message/ransfer_customer.go b/message/ransfer_customer.go new file mode 100644 index 0000000..e502cc0 --- /dev/null +++ b/message/ransfer_customer.go @@ -0,0 +1,24 @@ +package message + +//TransferCustomer 转发客服消息 +type TransferCustomer struct { + CommonToken + + TransInfo *TransInfo `xml:"TransInfo,omitempty"` +} + +//TransInfo 转发到指定客服 +type TransInfo struct { + KfAccount string `xml:"KfAccount"` +} + +//NewTransferCustomer 实例化 +func NewTransferCustomer(KfAccount string) *TransferCustomer { + tc := new(TransferCustomer) + if KfAccount != "" { + transInfo := new(TransInfo) + transInfo.KfAccount = KfAccount + tc.TransInfo = transInfo + } + return tc +}