增加对slice的长度、枚举值校验
This commit is contained in:
@ -75,6 +75,7 @@ type MapValueLimit struct {
|
||||
// Date : 21:34 2024/4/30
|
||||
type SliceConfig struct {
|
||||
Mode string `json:"slice_mode"` // REAL - 输入直接是slice MARSHAL - json序列化之后的字符串 WITH_SPLIT_CHAR - 使用指定字符串分隔
|
||||
DisableIgnoreEmpty bool `json:"disable_ignore_empty"` // 指定字符分割的时候, 忽略空字符串
|
||||
DisableAutoConvert bool `json:"disable_auto_convert"` // 禁用自动格式转换, 不禁用情况下, ["1","2","3"] 可以转换成 [1,2,3]
|
||||
SplitChar string `json:"split_char"` // 数组转换的分隔符, 当输入模式是 WITH_SPLIT_CHAR 时生效
|
||||
}
|
||||
|
Reference in New Issue
Block a user