feat: 更新多个模块以支持新的数据结构和日志格式

This commit is contained in:
TsMask
2025-02-20 10:08:27 +08:00
parent 045a2b6b01
commit f3c33b31ac
272 changed files with 13246 additions and 15885 deletions

View File

@@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"
"be.ems/src/framework/vo/result"
"be.ems/src/framework/resp"
"be.ems/src/modules/ws/model"
)
@@ -34,6 +34,10 @@ const (
GROUP_AMF_UE = "1010"
// 组号-MME_UE会话事件 1011_neId
GROUP_MME_UE = "1011"
// 组号-告警 2000_neType_neId
GROUP_ALARM = "2000"
// 组号-告警事件 2000_neType_neId
GROUP_ALARM_EVENT = "2002"
)
// 实例化服务层 WSSend 结构体
@@ -49,7 +53,7 @@ func (s *WSSend) ByClientID(clientID string, data any) error {
return fmt.Errorf("no fount client ID: %s", clientID)
}
dataByte, err := json.Marshal(result.OkData(data))
dataByte, err := json.Marshal(resp.OkData(data))
if err != nil {
return err
}