DeleteDeviceThresholdAlarm

DeleteAreaThresholdAlarm
This commit is contained in:
2025-11-10 18:22:00 +08:00
parent f44a94b451
commit cb075c907d
7 changed files with 131 additions and 8 deletions

View File

@@ -114,6 +114,11 @@ type UpdateAreaThresholdAlarmDTO struct {
Level models.SeverityLevel `json:"level,omitempty"` // 新的告警等级,可选
}
// DeleteDeviceThresholdAlarmDTO 删除设备阈值告警的请求DTO
type DeleteDeviceThresholdAlarmDTO struct {
SensorType models.SensorType `json:"sensor_type" binding:"required"` // 传感器类型
}
// AreaThresholdAlarmDTO 用于表示一个区域阈值告警任务的详细信息
type AreaThresholdAlarmDTO struct {
ID int `json:"id"`