From bc555966fa01956ddfb52d2444674e2eff1069f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 25 Nov 2024 14:35:00 +0800 Subject: [PATCH] fix NewDefaultFieldRule --- rule_instance.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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,