mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
【feature】添加组织数据读取权限
This commit is contained in:
@@ -60,6 +60,7 @@ func (n *createAlarmNode) Handle(msg *message.Message) error {
|
||||
alarm.State = global.ALARMING
|
||||
alarm.Type = n.AlarmType
|
||||
alarm.Time = time.Now()
|
||||
alarm.OrgId = msg.Metadata.GetValue("orgId").(int64)
|
||||
marshal, _ := json.Marshal(msg.Msg)
|
||||
alarm.Details = string(marshal)
|
||||
err := services.DeviceAlarmModelDao.Insert(*alarm)
|
||||
|
||||
Reference in New Issue
Block a user