【feat】首页面板告警数据

This commit is contained in:
XM-GO
2023-09-25 11:47:39 +08:00
parent d3a7deb66f
commit cdbbe85a70
6 changed files with 214 additions and 1 deletions

View File

@@ -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{}