39 lines
1.3 KiB
Go
39 lines
1.3 KiB
Go
package dict
|
|
|
|
// 注意:请不要在此文件添加与 consts/api-feature 包重复的类型定义。
|
|
// PlatformStatus 和 ApiMethod 等类型已在 dataengine/consts/api-feature 中定义,
|
|
// 请使用 api_feature.PlatformStatus / api_feature.ApiMethod 替代。
|
|
|
|
// Package dict 仅提供该包特有时使用。
|
|
|
|
// 转换类型(暂未使用,保留供未来扩展)
|
|
const (
|
|
TransformTypeDirect = "direct" // 直接映射
|
|
TransformTypeFormatDate = "formatDate" // 日期格式化
|
|
TransformTypeMapValue = "mapValue" // 值映射
|
|
TransformTypeConcat = "concat" // 拼接
|
|
TransformTypeCalc = "calc" // 计算
|
|
TransformTypeRegex = "regex" // 正则提取
|
|
)
|
|
|
|
// 业务域(暂未使用,保留供未来扩展)
|
|
const (
|
|
BusinessDomainUser = "user" // 用户
|
|
BusinessDomainOrder = "order" // 订单
|
|
BusinessDomainProduct = "product" // 商品
|
|
BusinessDomainPayment = "payment" // 支付
|
|
)
|
|
|
|
// 字段类型(暂未使用,保留供未来扩展)
|
|
const (
|
|
FieldTypeString = "string"
|
|
FieldTypeNumber = "number"
|
|
FieldTypeInteger = "integer"
|
|
FieldTypeBoolean = "boolean"
|
|
FieldTypeArray = "array"
|
|
FieldTypeObject = "object"
|
|
FieldTypeDate = "date"
|
|
FieldTypeTime = "time"
|
|
FieldTypeDateTime = "datetime"
|
|
)
|