add uuid to struct

This commit is contained in:
Adrian Zürcher
2025-04-28 07:05:50 +02:00
parent 0d3161337f
commit 0f22443b93

View File

@@ -1,11 +1,14 @@
package models package models
import "github.com/google/uuid"
type Subscribe struct { type Subscribe struct {
Path string `json:"path"` Uuid uuid.UUID `json:"uuid,omitempty"`
Depth uint `json:"depth,omitempty"` Path string `json:"path,omitempty"`
Drivers *Drivers `json:"drivers,omitempty"` Depth uint `json:"depth,omitempty"`
Driver string `json:"driver,omitempty"` Drivers *Drivers `json:"drivers,omitempty"`
OnCreate bool `json:"onCreate,omitempty"` Driver string `json:"driver,omitempty"`
OnDelete bool `json:"onDelete,omitempty"` OnCreate bool `json:"onCreate,omitempty"`
OnChange bool `json:"onChange,omitempty"` OnDelete bool `json:"onDelete,omitempty"`
OnChange bool `json:"onChange,omitempty"`
} }