add uuid to struct
This commit is contained in:
@@ -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"`
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user