优化数据类型验证

This commit is contained in:
2024-11-25 14:54:36 +08:00
parent bc555966fa
commit da9aa14f0e
5 changed files with 17 additions and 11 deletions

View File

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