add new parameter hasChild and set with connection id
This commit is contained in:
11
dbm/get.go
11
dbm/get.go
@@ -24,11 +24,12 @@ func (d *DBMHandler) Get(req *json_dataModels.Request, id string) {
|
||||
|
||||
for _, dp := range d.DBM.QueryDatapoints(depth, get.Uuid, get.Path) {
|
||||
resp.AddGet(json_dataModels.Get{
|
||||
Uuid: dp.Uuid,
|
||||
Path: dp.Path,
|
||||
Type: dp.Type,
|
||||
Value: dp.Value,
|
||||
Rights: dp.ReadWrite,
|
||||
Uuid: dp.Uuid,
|
||||
Path: dp.Path,
|
||||
Type: dp.Type,
|
||||
Value: dp.Value,
|
||||
HasChild: dp.Datapoints != nil,
|
||||
Rights: dp.ReadWrite,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user