summaryrefslogtreecommitdiff
path: root/danmaku/dmmsg/messages.go
diff options
context:
space:
mode:
Diffstat (limited to 'danmaku/dmmsg/messages.go')
-rw-r--r--danmaku/dmmsg/messages.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/danmaku/dmmsg/messages.go b/danmaku/dmmsg/messages.go
new file mode 100644
index 0000000..d1480b7
--- /dev/null
+++ b/danmaku/dmmsg/messages.go
@@ -0,0 +1,7 @@
+package dmmsg
+
+type BaseRawMessage[I any, D any] struct {
+ Cmd string `json:"cmd"`
+ Info I `json:"info"`
+ Data D `json:"data"`
+}