model

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute added in v0.3.6

type Attribute struct {
	ID   int    `json:"id" gorm:"primaryKey"`
	Name string `json:"name" gorm:"comment:名称"`
	Type int    `json:"type" gorm:"comment:类型"`
}

type AttributeValue added in v0.3.6

type AttributeValue struct {
	ID     int    `json:"id" gorm:"primaryKey"`
	AttrID int    `json:"attrId" gorm:"comment:属性id" `
	Value  string `json:"value" gorm:"值"`
}

type Cursor

type Cursor struct {
	Type   string `json:"type" gorm:"primaryKey"`
	Cursor string
	Prev   string
	Next   string
}

type Dict

type Dict struct {
	Type  int    `json:"type" gorm:"primaryKey;comment:类型"`
	Key   string `json:"key" gorm:"primaryKey;comment:键"`
	Value string `json:"value" gorm:"comment:值"`
	Seq   int    `json:"seq" gorm:"comment:排序"`
}

type Enum

type Enum struct {
	ID    int    `json:"id" gorm:"primaryKey"`
	Name  string `json:"name" gorm:"comment:名称"`
	Group int    `json:"group" gorm:"uniqueIndex;comment:枚举组"`
}

type EnumValue added in v0.3.6

type EnumValue struct {
	ID     int    `json:"id" gorm:"primaryKey"`
	EnumID int    `json:"enumId" gorm:"comment:枚举id"`
	Index  int    `json:"index" gorm:"comment:索引"`
	Value  string `json:"value" gorm:"comment:值"`
}

type Object added in v0.3.6

type Object struct {
	ID      int    `json:"id" gorm:"primaryKey"`
	FieldID int    `json:"fieldId" gorm:"comment:字段id"`
	Value   string `json:"value" gorm:"comment:值"`
}

type PostgresEnum

type PostgresEnum struct {
	ID    int `gorm:"primaryKey"`
	Enums datatypes.StringArray
}

type Struct added in v0.3.6

type Struct struct {
	ID   int    `json:"id" gorm:"primaryKey"`
	Name string `json:"name" gorm:"comment:名称"`
}

type StructField added in v0.3.6

type StructField struct {
	ID       int    `json:"id" gorm:"primaryKey"`
	StructID int    `json:"structId" gorm:"comment:结构体id"`
	PID      int    `json:"pid" gorm:"comment:父级id"`
	Name     string `json:"name" gorm:"comment:名称"`
	Type     int    `json:"type" gorm:"comment:类型"`
}

Jump to

Keyboard shortcuts

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