feat: 网元主机添加redis连接终端控制

This commit is contained in:
TsMask committed 2024-11-07 18:03:59 +08:00
1 parent 2c139e71c4
commit 9ac5ae50ec
8 files changed
+206 -3

No files matched your search

@@ -79,6 +79,13 @@ func (s *NeHostController) Add(c *gin.Context) {
return
}
if body.GroupID == "1" {
// 主机信息操作【%s】失败,禁止操作网元
msg := i18n.TKey(language, "neHost.banNE")
c.JSON(200, result.ErrMsg(msg))
return
}
// 检查属性值唯一
uniqueHost := s.neHostService.CheckUniqueHostTitle(body.GroupID, body.Title, body.HostType, "")
if !uniqueHost {