1 Star 1 Fork 0

窦雪峰/go-utils

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mp_msg.go 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
窦雪峰 提交于 2022-06-02 17:18 +08:00 . 基础消息能力
/*
* @Author: i@douxuefeng.cn
* @Date: 2022-06-02 16:04:48
* @LastEditTime: 2022-06-02 16:07:11
* @LastEditors: i@douxuefeng.cn
* @Description:
* @FilePath: \go-utils\wechat\mp\params\mp_msg.go
*/
package params
type MpMsg struct {
XMLName struct{} `xml:"xml" json:"-"`
ToUserName string `xml:"ToUserName"`
FromUserName string `xml:"FromUserName"`
CreateTime int64 `xml:"CreateTime"`
MsgType string `xml:"MsgType"`
MsgId int64 `xml:"MsgId,omitempty"`
//text
Content string `xml:"Content,omitempty"`
// image
PicUrl string `xml:"PicUrl,omitempty"`
MediaId string `xml:"MediaId,omitempty"`
// voice
Format string `xml:"Format,omitempty"`
// 语音识别
Recognition string `xml:"Recognition,omitempty"`
// video / shortvideo
ThumbMediaId string `xml:"ThumbMediaId,omitempty"`
// location
Location_X string `xml:"Location_X,omitempty"`
Location_Y string `xml:"Location_Y,omitempty"`
Scale string `xml:"Scale,omitempty"`
Label string `xml:"Label,omitempty"`
// link
Title string `xml:"Title,omitempty"`
Description string `xml:"Description,omitempty"`
Url string `xml:"Url,omitempty"`
// event subscribe unsubscribe SCAN LOCATION CLICK
Event string `xml:"Event,omitempty"`
EventKey string `xml:"EventKey,omitempty"`
Ticket string `xml:"Ticket,omitempty"`
Latitude string `xml:"Latitude,omitempty"`
Longitude string `xml:"Longitude,omitempty"`
Precision string `xml:"Precision,omitempty"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/douxuefeng/go-utils.git
git@gitee.com:douxuefeng/go-utils.git
douxuefeng
go-utils
go-utils
v1.0.0

搜索帮助