feat: 网元参数配置数据支持版本区分功能,,适应mme版本配置

This commit is contained in:
TsMask
2025-10-17 11:06:27 +08:00
parent c325b89f6f
commit 7f7f4e2581
19 changed files with 924 additions and 351 deletions

View File

@@ -395,6 +395,7 @@ func (s NeInfoController) Add(c *gin.Context) {
// 已有网元可获取的信息
if body.ServerState != nil {
if v, ok := body.ServerState["version"]; ok && v != nil {
body.NeVersion = fmt.Sprint(v)
neVersion.Version = fmt.Sprint(v)
}
if v, ok := body.ServerState["sn"]; ok && v != nil {
@@ -497,6 +498,7 @@ func (s NeInfoController) Edit(c *gin.Context) {
// 已有网元可获取的信息
if body.ServerState != nil {
if v, ok := body.ServerState["version"]; ok && v != nil {
body.NeVersion = fmt.Sprint(v)
neVersion.Version = fmt.Sprint(v)
neVersion.UpdateBy = loginUserName
}