52 lines
1.2 KiB
Go
52 lines
1.2 KiB
Go
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"
|
|
)
|
|
|
|
// 平台状态
|
|
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"
|
|
)
|