重构数据引擎和报表引擎
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
package dict
|
||||
|
||||
// 转换类型
|
||||
// 注意:请不要在此文件添加与 consts/api-feature 包重复的类型定义。
|
||||
// PlatformStatus 和 ApiMethod 等类型已在 dataengine/consts/api-feature 中定义,
|
||||
// 请使用 api_feature.PlatformStatus / api_feature.ApiMethod 替代。
|
||||
|
||||
// Package dict 仅提供该包特有时使用。
|
||||
|
||||
// 转换类型(暂未使用,保留供未来扩展)
|
||||
const (
|
||||
TransformTypeDirect = "direct" // 直接映射
|
||||
TransformTypeFormatDate = "formatDate" // 日期格式化
|
||||
@@ -10,7 +16,7 @@ const (
|
||||
TransformTypeRegex = "regex" // 正则提取
|
||||
)
|
||||
|
||||
// 业务域
|
||||
// 业务域(暂未使用,保留供未来扩展)
|
||||
const (
|
||||
BusinessDomainUser = "user" // 用户
|
||||
BusinessDomainOrder = "order" // 订单
|
||||
@@ -18,7 +24,7 @@ const (
|
||||
BusinessDomainPayment = "payment" // 支付
|
||||
)
|
||||
|
||||
// 字段类型
|
||||
// 字段类型(暂未使用,保留供未来扩展)
|
||||
const (
|
||||
FieldTypeString = "string"
|
||||
FieldTypeNumber = "number"
|
||||
@@ -30,22 +36,3 @@ const (
|
||||
FieldTypeTime = "time"
|
||||
FieldTypeDateTime = "datetime"
|
||||
)
|
||||
|
||||
// 平台状态
|
||||
type PlatformStatus string
|
||||
|
||||
const (
|
||||
PlatformStatusActive PlatformStatus = "active"
|
||||
PlatformStatusInactive PlatformStatus = "inactive"
|
||||
)
|
||||
|
||||
// 接口方法
|
||||
type ApiMethod string
|
||||
|
||||
const (
|
||||
ApiMethodGET ApiMethod = "GET"
|
||||
ApiMethodPOST ApiMethod = "POST"
|
||||
ApiMethodPUT ApiMethod = "PUT"
|
||||
ApiMethodDELETE ApiMethod = "DELETE"
|
||||
ApiMethodPATCH ApiMethod = "PATCH"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user