Dockerfile
This commit is contained in:
13
consts/mapping/mapping_status.go
Normal file
13
consts/mapping/mapping_status.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package mapping
|
||||
|
||||
// MappingStatus 映射状态
|
||||
type MappingStatus string
|
||||
|
||||
const (
|
||||
MappingStatusActive MappingStatus = "active" // 启用
|
||||
MappingStatusInactive MappingStatus = "inactive" // 停用
|
||||
)
|
||||
|
||||
func (s MappingStatus) String() string {
|
||||
return string(s)
|
||||
}
|
||||
16
consts/mapping/transform_type.go
Normal file
16
consts/mapping/transform_type.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package mapping
|
||||
|
||||
// TransformType 转换类型
|
||||
type TransformType string
|
||||
|
||||
const (
|
||||
TransformTypeFixed TransformType = "fixed" // 固定值
|
||||
TransformTypeMapping TransformType = "mapping" // 值映射
|
||||
TransformTypeRegex TransformType = "regex" // 正则转换
|
||||
TransformTypeFunction TransformType = "function" // 函数转换
|
||||
TransformTypeScript TransformType = "script" // 脚本转换
|
||||
)
|
||||
|
||||
func (t TransformType) String() string {
|
||||
return string(t)
|
||||
}
|
||||
Reference in New Issue
Block a user