diff --git a/rule_instance.go b/rule_instance.go index 4c9e6f0..db27447 100644 --- a/rule_instance.go +++ b/rule_instance.go @@ -7,14 +7,17 @@ // Date : 2024-04-29 12:18 package validator -import "git.zhangdeman.cn/gateway/validator/define" +import ( + "git.zhangdeman.cn/gateway/validator/define" + "git.zhangdeman.cn/zhangdeman/consts/enums" +) // NewDefaultFieldRule ... // // Author : go_developer@163.com<白茶清欢> // // Date : 14:01 2024/4/29 -func NewDefaultFieldRule(path string, dataType string, isRequired bool, defaultValue string) *define.FieldRule { +func NewDefaultFieldRule(path string, dataType enums.DataType, isRequired bool, defaultValue string) *define.FieldRule { r := &define.FieldRule{ Path: path, Type: dataType,