Commit 415eb3e5 authored by 李科's avatar 李科

fix: 预警分类层级限制

parent 37f16c6f
...@@ -2,7 +2,7 @@ package request ...@@ -2,7 +2,7 @@ package request
type AddAlertClass struct { type AddAlertClass struct {
ClassName string `json:"class_name" form:"class_name" binding:"required"` ClassName string `json:"class_name" form:"class_name" binding:"required"`
ParentId int `json:"parent_id" form:"parent_id" binding:"omitempty"` ParentId int `json:"parent_id" form:"parent_id" binding:"omitempty,oneof=0 1"`
SortOrder int `json:"sort_order" form:"sort_order"` SortOrder int `json:"sort_order" form:"sort_order"`
} }
......
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