code upgrade
This commit is contained in:
@ -85,7 +85,7 @@ func (r validateRule) Enum(structField reflect.StructField) []any {
|
||||
// Date : 15:29 2025/2/13
|
||||
func (r validateRule) getValidateRuleTable(structField reflect.StructField) map[string]string {
|
||||
res := map[string]string{}
|
||||
ruleStr := ParseStructField.GetValidateRule(structField)
|
||||
ruleStr := ParseStructFieldTag.GetValidateRule(structField)
|
||||
if len(ruleStr) == 0 {
|
||||
return res
|
||||
}
|
||||
|
Reference in New Issue
Block a user