优化数据类型定义

This commit is contained in:
2024-11-25 14:57:08 +08:00
parent 44de8814d8
commit fcf1a7fbd4
4 changed files with 12 additions and 9 deletions

View File

@ -7,7 +7,9 @@
// Date : 2022-07-04 18:02
package filter
import "git.zhangdeman.cn/zhangdeman/consts/enums"
import (
"git.zhangdeman.cn/zhangdeman/consts"
)
// MapRule 映射规则
//
@ -15,9 +17,9 @@ import "git.zhangdeman.cn/zhangdeman/consts/enums"
//
// Date : 12:21 2022/7/4
type MapRule struct {
SourcePath string `json:"source_path"` // 原路径
TargetPath string `json:"target_path"` // 目标路径路径
Required bool `json:"required"` // 必须存在
DataType enums.DataType `json:"data_type"` // 数据类型
DefaultValue string `json:"default_value"` // 默认值, 以字符串传入, 会转换成 DataType
SourcePath string `json:"source_path"` // 原路径
TargetPath string `json:"target_path"` // 目标路径路径
Required bool `json:"required"` // 必须存在
DataType consts.DataType `json:"data_type"` // 数据类型
DefaultValue string `json:"default_value"` // 默认值, 以字符串传入, 会转换成 DataType
}