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

11
models/subscribe.go Normal file
View File

@@ -0,0 +1,11 @@
package models
type Subscribe struct {
Path string `json:"path"`
Depth uint `json:"depth,omitempty"`
Drivers *Drivers `json:"drivers,omitempty"`
Driver string `json:"driver,omitempty"`
OnCreate bool `json:"onCreate,omitempty"`
OnDelete bool `json:"onDelete,omitempty"`
OnChange bool `json:"onChange,omitempty"`
}