This commit is contained in:
panda
2024-06-06 20:36:50 +08:00
parent 14c5b453b6
commit 41b61ebf1e
19 changed files with 41 additions and 288 deletions

View File

@@ -5,6 +5,7 @@ import (
"pandax/apps/device/entity"
"pandax/apps/device/services"
"pandax/iothub/server/emqxserver/protobuf"
"pandax/kit/utils"
"pandax/pkg/cache"
"pandax/pkg/global"
"pandax/pkg/global/model"
@@ -111,7 +112,7 @@ func CreateSubTableField(productId, ty string, fields map[string]interface{}) {
}
tsl := entity.ProductTemplate{}
tsl.Pid = productId
tsl.Id = model.GenerateID()
tsl.Id = utils.GenerateID()
tsl.Name = key
tsl.Type = interfaceType
tsl.Key = key