增加默认字段验证表达式生成规则函数

This commit is contained in:
2025-01-24 11:57:45 +08:00
parent fcad833e88
commit 55502d1c28
3 changed files with 48 additions and 2 deletions

View File

@ -9,7 +9,6 @@ package abstract
import (
"git.zhangdeman.cn/gateway/validator/v10/define"
"git.zhangdeman.cn/zhangdeman/consts"
)
// IValidateRuleGenerateFunc 生成校验规则的方法约束
@ -33,4 +32,4 @@ type IValidateRuleGenerateFunc func(ruleConfig define.GenerateRuleExpressConfig)
// Author : go_developer@163.com<白茶清欢>
//
// Date : 11:16 2025/1/24
type IFieldValidateRuleGenerateFunc func(validateRule consts.ValidatorRule, paramList ...any) (express string, err error)
type IFieldValidateRuleGenerateFunc func(fieldValidateRule define.FieldValidateGenerateConfig) (express string, err error)