Last active
August 1, 2021 12:33
-
-
Save suntong/fd5e73ffe0329df216d5122de806072c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{range .Types}} | |
{{css2ls .Nm | cls2uc}} AppMessageType = {{.Vl}} // {{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Types: | |
- Nm: APP_MSG_TYPE_TEXT | |
Vl: 1 | |
- Nm: APP_MSG_TYPE_IMG | |
Vl: 2 | |
- Nm: APP_MSG_TYPE_AUDIO | |
Vl: 3 | |
- Nm: APP_MSG_TYPE_VIDEO | |
Vl: 4 | |
- Nm: APP_MSG_TYPE_URL | |
Vl: 5 | |
- Nm: APP_MSG_TYPE_ATTACH | |
Vl: 6 | |
- Nm: APP_MSG_TYPE_OPEN | |
Vl: 7 | |
- Nm: APP_MSG_TYPE_EMOJI | |
Vl: 8 | |
- Nm: APP_MSG_TYPE_VOICE_REMIND | |
Vl: 9 | |
- Nm: APP_MSG_TYPE_SCAN_GOOD | |
Vl: 10 | |
- Nm: APP_MSG_TYPE_GOOD | |
Vl: 13 | |
- Nm: APP_MSG_TYPE_EMOTION | |
Vl: 15 | |
- Nm: APP_MSG_TYPE_CARD_TICKET | |
Vl: 16 | |
- Nm: APP_MSG_TYPE_REALTIME_SHARE_LOCATION | |
Vl: 17 | |
- Nm: APP_MSG_TYPE_TRANSFERS | |
Vl: 2000 | |
- Nm: APP_MSG_TYPE_RED_ENVELOPES | |
Vl: 2001 | |
- Nm: APP_MSG_TYPE_READER_TYPE | |
Vl: 100001//自定义的type | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{range .Types}} | |
// {{.Nm}}{{end}} | |
{{range .Types}} | |
{{css2ls .Nm | cls2uc}} MessageType = {{.Vl}} // {{.Cm}}{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Types: | |
- Nm: MSGTYPE_TEXT | |
Vl: 1 | |
Cm: 文本消息 | |
- Nm: MSGTYPE_IMAGE | |
Vl: 3 | |
Cm: 图片消息 | |
- Nm: MSGTYPE_VOICE | |
Vl: 34 | |
Cm: 语音消息 | |
- Nm: MSGTYPE_VERIFYMSG | |
Vl: 37 | |
Cm: 认证消息 | |
- Nm: MSGTYPE_POSSIBLEFRIEND_MSG | |
Vl: 40 | |
Cm: 好友推荐消息 | |
- Nm: MSGTYPE_SHARECARD | |
Vl: 42 | |
Cm: 名片消息 | |
- Nm: MSGTYPE_VIDEO | |
Vl: 43 | |
Cm: 视频消息 | |
- Nm: MSGTYPE_EMOTICON | |
Vl: 47 | |
Cm: 表情消息 | |
- Nm: MSGTYPE_LOCATION | |
Vl: 48 | |
Cm: 地理位置消息 | |
- Nm: MSGTYPE_APP | |
Vl: 49 | |
Cm: APP消息 | |
- Nm: MSGTYPE_VOIPMSG | |
Vl: 50 | |
Cm: VOIP消息 | |
- Nm: MSGTYPE_VOIPNOTIFY | |
Vl: 52 | |
Cm: VOIP结束消息 | |
- Nm: MSGTYPE_VOIPINVITE | |
Vl: 53 | |
Cm: VOIP邀请 | |
- Nm: MSGTYPE_MICROVIDEO | |
Vl: 62 | |
Cm: 小视频消息 | |
- Nm: MSGTYPE_SYS | |
Vl: 10000 | |
Cm: 系统消息 | |
- Nm: MSGTYPE_RECALLED | |
Vl: 10002 | |
Cm: 消息撤回 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment