From 0f22443b935dc98b6856b2052b620eb3cf5fa90b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Z=C3=BCrcher?= Date: Mon, 28 Apr 2025 07:05:50 +0200 Subject: [PATCH] add uuid to struct --- models/subscribe.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/models/subscribe.go b/models/subscribe.go index 27fd969..8641fe8 100644 --- a/models/subscribe.go +++ b/models/subscribe.go @@ -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"` }