Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func X_SelectDict ¶ added in v0.0.4
func Xc_SelectDict ¶ added in v0.0.4
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 字典
type X_DictImpl ¶ added in v0.0.3
type X_DictImpl struct { Id assist.Int64 Key assist.String Name assist.String IsPin assist.Bool Sort assist.Uint16 CreatedAt assist.Time // contains filtered or unexported fields }
func New_X_Dict ¶
func New_X_Dict(tableName string) X_DictImpl
func X_Dict ¶ added in v0.0.3
func X_Dict() X_DictImpl
func (X_DictImpl) As ¶ added in v0.0.3
func (X_DictImpl) As(alias string) X_DictImpl
func (X_DictImpl) X_Model ¶ added in v0.0.3
func (X_DictImpl) X_Model() *Dict
Click to show internal directories.
Click to hide internal directories.