We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
业务场景
有两个按钮分别是【暂存】【提交】,点击【暂存】时要求只校验部分规则(如:字符长度,选择数量,不做必填校验)点击【提交】时全部规则校验。
一般实现这个功能可能要借助一个flag去判断,这使得业务代码看着挺乱的。
现在希望添加Rule 增加 groupId 字段用于给规则分组,添加validateFieldsByGroupIds(['groupId1', 'groupId2'])去校验对应的规则
或者改造增强validateFields方法,给一个predicate去断言
The text was updated successfully, but these errors were encountered:
No branches or pull requests
业务场景
有两个按钮分别是【暂存】【提交】,点击【暂存】时要求只校验部分规则(如:字符长度,选择数量,不做必填校验)点击【提交】时全部规则校验。
一般实现这个功能可能要借助一个flag去判断,这使得业务代码看着挺乱的。
现在希望添加Rule 增加 groupId 字段用于给规则分组,添加validateFieldsByGroupIds(['groupId1', 'groupId2'])去校验对应的规则
或者改造增强validateFields方法,给一个predicate去断言
The text was updated successfully, but these errors were encountered: