Documentation ¶
Index ¶
- type Dict
- type Dict_Native
- func (*Dict_Native) As(alias string) Dict_Native
- func (*Dict_Native) New_Executor(db *gorm.DB) *assist.Executor[Dict]
- func (x *Dict_Native) Select_Expr() []assist.Expr
- func (x *Dict_Native) Select_VariantExpr(prefixes ...string) []assist.Expr
- func (*Dict_Native) TableName() string
- func (x *Dict_Native) X_Alias() string
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 `` // 是否锁定,一旦锁定将不可删除 /* 128-byte string literal not displayed */ Remark string `gorm:"column:remark;type:varchar(128);not null;default:'';comment:备注" json:"remark,omitempty"` // 备注 CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null;comment:创建时间" json:"created_at,omitempty"` // 创建时间 UpdatedAt time.Time `gorm:"column:updated_at;type:datetime;not null;comment:更新时间" json:"updated_at,omitempty"` // 更新时间 }
Dict 字典
type Dict_Native ¶
type Dict_Native struct { ALL assist.Asterisk Id assist.Int64 Key assist.String Name assist.String IsPin assist.Bool Remark assist.String CreatedAt assist.Time UpdatedAt assist.Time // contains filtered or unexported fields }
func (*Dict_Native) New_Executor ¶
New_Executor new entity executor which suggest use only once.
func (*Dict_Native) Select_Expr ¶
func (x *Dict_Native) Select_Expr() []assist.Expr
Select_Expr select model fields
func (*Dict_Native) Select_VariantExpr ¶
func (x *Dict_Native) Select_VariantExpr(prefixes ...string) []assist.Expr
Select_VariantExpr select model fields, but time.Time field convert to timestamp(int64).
func (*Dict_Native) TableName ¶
func (*Dict_Native) TableName() string
TableName hold model `Dict` table name returns `dict`.
func (*Dict_Native) X_Alias ¶
func (x *Dict_Native) X_Alias() string
X_Alias hold table name when call New_Dict or Dict_Active.As that you defined.
Click to show internal directories.
Click to hide internal directories.