fix 修改参数类型为interface{},支持string和number (#390)

This commit is contained in:
silenceper authored and GitHub committed 2021-04-12 16:06:14 +08:00
1 parent 5ec4cc2269
commit 5472ac979b
1 file changed
+2 -2
+2 -2
View File
@@ -43,8 +43,8 @@ type Message struct {
//DataItem 模版内某个 .DATA 的值
type DataItem struct {
Value string `json:"value"`
Color string `json:"color"`
Value interface{} `json:"value"`
Color string `json:"color"`
}
//TemplateItem template item