表达式生成验证规则, 支持参数数量验证

This commit is contained in:
2025-01-24 15:28:28 +08:00
parent 55502d1c28
commit cdbf5376a7
2 changed files with 14 additions and 3 deletions

View File

@ -26,6 +26,6 @@ type FieldValidateGenerateConfig struct {
//
// Date : 11:27 2025/1/24
type GenerateRuleExpressConfig struct {
Rule consts.ValidatorRule `json:"rule,omitempty"` // 条件配置
ParamList []any `json:"param_list,omitempty"` // 规则验证的参数列表
Rule *consts.ValidatorRule `json:"rule,omitempty"` // 条件配置
ParamList []any `json:"param_list,omitempty"` // 规则验证的参数列表
}