field

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FValue

type FValue struct {
	Name  string    // 字段名
	Type  ValueType // 值类型
	Value any       // 值
}

func (FValue) ToValue

func (fv FValue) ToValue() Value

type Value

type Value struct {
	Type  ValueType // 值类型
	Value any       // 值
}

type ValueType

type ValueType int
const (
	None       ValueType = iota // 无,未定义
	Default                     // 字段默认值
	Null                        // 设为null
	Now                         // 当前时间
	UnixSecond                  // 秒时间戳
	UnixMilli                   // 毫秒时间戳
	UnixNano                    // 纳秒时间戳
	Val                         // 自定义值
	Increment                   // 字段自增
	Expression                  // 表达式
	ID                          // 主键id
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL