Documentation
¶
Index ¶
- func DictGetValue(db *gorm.DB, typ int, key string) (string, error)
- func DictSetValue(db *gorm.DB, typ int, key, value string) error
- type Attribute
- type Cursor
- type Dict
- type Enum
- type EnumValue
- type Model
- type ModelExt
- type Object
- type PostgresEnum
- type Struct
- type StructField
- type TableColumn
- type TableMeta
- type TableValue
- type Tree
- type TreeNode
- type Upload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostgresEnum ¶
type PostgresEnum struct {
ID uint `gorm:"primaryKey"`
Enums sqlx.StringArray
}
type Struct ¶
type Struct struct {
ID uint `json:"id" gorm:"primaryKey"`
Name string `json:"name" gorm:"comment:名称"`
}
内部保留,{1,int8},{2,int16}...{x,uint8}...{x,uint64},{x,string}
type StructField ¶
type StructField struct {
ID uint `json:"id" gorm:"primaryKey"`
StructID uint `json:"structId" gorm:"comment:结构体id"`
Name string `json:"name" gorm:"comment:名称"`
Kind uint32 `json:"kind" gorm:"comment:类型"`
Tag string `json:"tag" gorm:"comment:标签"`
Offset uint32 `json:"offset" gorm:"comment:偏移量"`
Anonymous bool `json:"anonymous" gorm:"comment:匿名"`
SubStructID uint `json:"subStructId" gorm:"comment:子结构体id"`
}
type TableColumn ¶
type TableValue ¶
type Upload ¶
type Upload struct {
ID uint64 `gorm:"primary_key" json:"id"`
Name string `gorm:"type:varchar(100);not null" json:"name"`
OriginalName string `gorm:"type:varchar(100);not null" json:"original_name"`
URL string `json:"url"`
MD5 string `gorm:"type:varchar(32)" json:"md5"`
Mime string `json:"mime"`
Size uint64 `json:"size"`
}
Click to show internal directories.
Click to hide internal directories.