model

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 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 Cursor

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

type Dict

type Dict struct {
	Type    int    `gorm:"comment:类型" gorm:"primaryKey"`
	Key     string `gorm:"comment:键" gorm:"primaryKey"`
	Name    string `gorm:"comment:名称"`
	Value   string `gorm:"comment:值"`
	Comment string `gorm:"comment:注释"`
}

type Enum

type Enum struct {
	ID      int    `gorm:"primaryKey"`
	Name    string `gorm:"comment:名称"`
	Group   int    `gorm:"comment:枚举组" gorm:"uniqueIndex:idx_group_index"`
	Index   int    `gorm:"comment:索引" gorm:"uniqueIndex:idx_group_index"`
	Value   string `gorm:"comment:值" `
	Comment string `gorm:"comment:注释"`
}

type EnumItem

type EnumItem struct {
	Group   int    `gorm:"comment:枚举类型"`
	Index   int    `gorm:"comment:索引"`
	Comment string `gorm:"comment:注释"`
}

type PostgresEnum

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

Jump to

Keyboard shortcuts

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