docs/core/gvalid-parameter-type-struct-example #184
Replies: 1 comment
-
|
struct里int类型的属性不是required,但是有限制min:1,不传这个值的话,默认为0,就会产生多余的判定,这个怎么解决的? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
docs/core/gvalid-parameter-type-struct-example
使用GoFrame框架进行Struct类型数据的校验,包括对校验tag规则的详细说明以及不同类型的数据校验方法,如基本校验、使用map自定义规则、以及结构体的递归校验示例。通过示例代码展示如何设置属性别名和自定义错误提示信息,实现对struct对象中不同属性的复杂校验逻辑。
https://goframe.org/docs/core/gvalid-parameter-type-struct-example
Beta Was this translation helpful? Give feedback.
All reactions