code upgrade

This commit is contained in:
2025-02-18 10:08:45 +08:00
parent 0fc52fe51b
commit 1ff465b953
3 changed files with 33 additions and 33 deletions

View File

@ -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
}