package n9m // main server util func (e *Package) ResponseAlarm(alarmType int64, alarmUID int64, cmdno int64, cmdtype int64, run int64, serial string, Sid string) { e.Payload = map[string]any{ "MODULE": "EVEM", "OPERATION": "SENDALARMINFO", "RESPONSE": map[string]any{ "ALARMTYPE": alarmType, "ALARMUID": alarmUID, "CMDNO": cmdno, "CMDTYPE": cmdtype, "ERRORCODE": 0, "RUN": run, }, "SESSION": Sid, } }