add uuid to struct
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
package models
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
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"`
|
||||
Uuid uuid.UUID `json:"uuid,omitempty"`
|
||||
Path string `json:"path,omitempty"`
|
||||
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"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user