add and improve remove driver function and rename datapoint

This commit is contained in:
Adrian Zuercher
2025-07-31 12:20:49 +02:00
parent b21101958d
commit 21e4231e24
8 changed files with 107 additions and 49 deletions

View File

@@ -1,7 +1,6 @@
package dbm
import (
"fmt"
"net/http"
"github.com/gin-gonic/gin"
@@ -46,10 +45,6 @@ func (d *DBMHandler) Json_Data(c *gin.Context) {
}
if len(payload.Set) > 0 {
resp.Set, err = d.DBM.CreateDatapoints(payload.Set...)
for i, o := range resp.Set {
fmt.Println(1000, i, o)
fmt.Println(1001, o.HasChild)
}
if err != nil {
r := json_data.NewResponse()
r.SetError()