mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
【feat】首页面板告警数据
This commit is contained in:
@@ -14,6 +14,11 @@ type DeviceAlarmApi struct {
|
||||
DeviceAlarmApp services.DeviceAlarmModel
|
||||
}
|
||||
|
||||
func (p *DeviceAlarmApi) GetDeviceAlarmPanel(rc *restfulx.ReqCtx) {
|
||||
panel := p.DeviceAlarmApp.FindAlarmPanel()
|
||||
rc.ResData = panel
|
||||
}
|
||||
|
||||
// GetDeviceAlarmList 告警列表数据
|
||||
func (p *DeviceAlarmApi) GetDeviceAlarmList(rc *restfulx.ReqCtx) {
|
||||
data := entity.DeviceAlarmForm{}
|
||||
|
||||
Reference in New Issue
Block a user