Commit 58c8e0c3 authored by 李科's avatar 李科

fix: 预警规则设置阈值范围回显

parent 26fa830f
...@@ -36,8 +36,8 @@ type RulesAlertRange struct { ...@@ -36,8 +36,8 @@ type RulesAlertRange struct {
} }
type AlertCondition struct { type AlertCondition struct {
ThresholdsMin *float64 `json:"thresholds_min" form:"thresholds_min" binding:"omitempty,required_without=Id"` ThresholdsMin *float64 `json:"thresholds_min,omitempty" form:"thresholds_min" binding:"omitempty,required_without=ThresholdsMax"`
ThresholdsMax *float64 `json:"thresholds_max" form:"thresholds_max" binding:"omitempty"` ThresholdsMax *float64 `json:"thresholds_max,omitempty" form:"thresholds_max" binding:"omitempty"`
RiskLevel int `json:"risk_level" form:"risk_level" binding:"required,oneof=1 2 3 4"` RiskLevel int `json:"risk_level" form:"risk_level" binding:"required,oneof=1 2 3 4"`
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment