1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

impl String for ElementType

This commit is contained in:
wdvxdr 2021-07-09 10:49:37 +08:00
parent 4f967b0a62
commit 577f0a1552
No known key found for this signature in database
GPG Key ID: 55FF1414A69CEBA6

View File

@ -100,19 +100,20 @@ const (
KuwoMusic // 酷我音乐
)
//go:generate stringer -type ElementType -linecomment
const (
Text ElementType = iota
Image
Face
At
Reply
Service
Forward
File
Voice
Video
LightApp
RedBag
Text ElementType = iota // 文本
Image // 图片
Face // 表情
At // 艾特
Reply // 回复
Service // 服务
Forward // 转发
File // 文件
Voice // 语音
Video // 视频
LightApp // 轻应用
RedBag // 红包
HoldingYourHand GroupGift = 280
CuteCat GroupGift = 281