[feat]网关子设备,直接上传,自动创建设备模型,无需手动创建

This commit is contained in:
PandaX
2023-10-17 11:14:18 +08:00
parent f26c5a2647
commit 55e399e5cb
23 changed files with 1457 additions and 74 deletions

View File

@@ -4,7 +4,6 @@ import (
"github.com/PandaXGO/PandaKit/model"
"github.com/PandaXGO/PandaKit/restfulx"
"github.com/PandaXGO/PandaKit/utils"
"log"
"pandax/apps/log/entity"
"pandax/apps/log/services"
)
@@ -36,7 +35,6 @@ func (l *LogOperApi) GetOperLog(rc *restfulx.ReqCtx) {
func (l *LogOperApi) DeleteOperLog(rc *restfulx.ReqCtx) {
operIds := restfulx.PathParam(rc, "operId")
group := utils.IdsStrToIdsIntGroup(operIds)
log.Println("group", group)
l.LogOperApp.Delete(group)
}