fix: 解决json无法正常解析的问题
This commit is contained in:
@ -12,9 +12,10 @@ type ControlMessage struct {
|
||||
}
|
||||
|
||||
type BroadcastMessage struct {
|
||||
Type MessageType `json:"type"`
|
||||
Topic Topic `json:"topic"`
|
||||
Payload json.RawMessage `json:"payload"`
|
||||
Type MessageType `json:"type"`
|
||||
Topic Topic `json:"topic"`
|
||||
Payload json.RawMessage `json:"payload"`
|
||||
Timestamp int64 `json:"timestamp"`
|
||||
}
|
||||
|
||||
func (m ControlMessage) Validate() error {
|
||||
|
||||
Reference in New Issue
Block a user