model

package
v0.0.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dict

type Dict struct {
	Id        int64     `gorm:"column:id;autoIncrement:true;not null;primaryKey;comment:字典ID" json:"id,omitempty"`                   // 字典ID
	Key       string    `gorm:"column:key;type:varchar(64);not null;default:'';uniqueIndex:uk_key;comment:关键字" json:"key,omitempty"` // 关键字
	Name      string    `gorm:"column:name;type:varchar(64);not null;default:'';comment:名称" json:"name,omitempty"`                   // 名称
	IsPin     bool      `gorm:"column:is_pin;type:tinyint(1);not null;comment:是否锁定, 一旦锁定将不可删除" json:"is_pin,omitempty"`              // 是否锁定, 一旦锁定将不可删除
	Sort      uint16    `gorm:"column:sort;type:smallint unsigned;not null;default:0;comment:序号" json:"sort,omitempty"`              // 备注
	CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null;comment:创建时间" json:"created_at,omitempty"`                   // 创建时间

}

Dict 字典

func (*Dict) TableName

func (*Dict) TableName() string

TableName implement schema.Tabler interface

Jump to

Keyboard shortcuts

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