This commit is contained in:
PandaX-Go
2024-08-25 19:58:05 +08:00
parent 96e2500fad
commit 77ac18c21b
157 changed files with 249 additions and 5190 deletions

View File

@@ -2,10 +2,10 @@ package netbase
import (
"encoding/json"
"github.com/PandaXGO/PandaKit/utils"
"pandax/apps/device/entity"
"pandax/apps/device/services"
exhook "pandax/iothub/server/emqxserver/protobuf"
"pandax/kit/utils"
"pandax/pkg/cache"
"pandax/pkg/global"
"pandax/pkg/global/model"
@@ -100,7 +100,7 @@ func CreateSubTableField(productId, ty string, fields map[string]interface{}) {
}
tsl := entity.ProductTemplate{}
tsl.Pid = productId
tsl.Id = utils.GenerateID()
tsl.Id = utils.GenerateID("tsl")
tsl.Name = key
tsl.Type = interfaceType
tsl.Key = key