remodel json data for compatibility

This commit is contained in:
Adrian Zürcher
2025-04-26 23:14:50 +02:00
parent 85bd8de2a2
commit ea4719ff01
26 changed files with 672 additions and 550 deletions

10
models/publish.go Normal file
View File

@@ -0,0 +1,10 @@
package models
import "github.com/google/uuid"
type Publish struct {
Event string `json:"event,omitempty"`
Uuid uuid.UUID `json:"uuid,omitempty"`
Path string `json:"path,omitempty"`
Value any `json:"value,omitempty"`
}