封装的方法类
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package wechatx
|
||||
|
||||
import "encoding/xml"
|
||||
|
||||
type WechatMessage struct {
|
||||
XMLName xml.Name `xml:"xml"`
|
||||
ToUserName string `json:"to_user_name" xml:"ToUserName"` // 接收人
|
||||
FromUserName string `json:"from_user_name" xml:"FromUserName"` // 发送人
|
||||
CreateTime int64 `json:"create_time" xml:"CreateTime"` // 创建时间
|
||||
MsgType string `json:"msg_type" xml:"MsgType"` // 消息类型 text
|
||||
Content string `json:"content" xml:"Content"` // 内容
|
||||
MsgId string `json:"msg_id" xml:"MsgId"`
|
||||
}
|
||||
Reference in New Issue
Block a user