From 0446a160e1339ed48e61001496db1459f1860f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Z=C3=BCrcher?= Date: Tue, 13 May 2025 21:16:30 +0200 Subject: [PATCH] add parameter haschild --- models/get.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/models/get.go b/models/get.go index 93589c3..51ee535 100644 --- a/models/get.go +++ b/models/get.go @@ -4,13 +4,14 @@ import "github.com/google/uuid" // Get model type Get struct { - Uuid uuid.UUID `json:"uuid"` // universally unique identifier - Path string `json:"path"` // dbm path - Query *Query `json:"query,omitempty"` // query paramater - Drivers *Drivers `json:"driver,omitempty"` // assigned drivers - Type Type `json:"type,omitempty"` // dbm datatype - Value any `json:"value,omitempty"` // dbm value - Rights Rights `json:"rights,omitempty"` // dbm read /write rights + Uuid uuid.UUID `json:"uuid"` // universally unique identifier + Path string `json:"path"` // dbm path + Query *Query `json:"query,omitempty"` // query paramater + Drivers *Drivers `json:"driver,omitempty"` // assigned drivers + Type Type `json:"type,omitempty"` // dbm datatype + Value any `json:"value,omitempty"` // dbm value + HasChild bool `json:"hasChild,omitempty"` // inidicates path has child/ren + Rights Rights `json:"rights,omitempty"` // dbm read /write rights } // search dbm datapoints by path