Documentation ¶
Index ¶
- func X_Native_SelectDict() []assist.Expr
- func X_SelectDict(prefixes ...string) []assist.Expr
- type Dict
- type Dict_Active
- func (*Dict_Active) As(alias string) Dict_Active
- func (*Dict_Active) Field_CreatedAt(prefixes ...string) string
- func (*Dict_Active) Field_Id(prefixes ...string) string
- func (*Dict_Active) Field_IsPin(prefixes ...string) string
- func (*Dict_Active) Field_Key(prefixes ...string) string
- func (*Dict_Active) Field_Name(prefixes ...string) string
- func (*Dict_Active) Field_Remark(prefixes ...string) string
- func (*Dict_Active) Field_UpdatedAt(prefixes ...string) string
- func (*Dict_Active) TableName() string
- func (x *Dict_Active) X_Executor(db *gorm.DB) *assist.Executor[Dict]
- func (*Dict_Active) X_Model() *Dict
- func (x *Dict_Active) X_TableName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func X_Native_SelectDict ¶ added in v0.1.0
X_Native_SelectDict select field use use X_Native_Dict().
func X_SelectDict ¶ added in v0.0.4
X_SelectDict select fields use X_Dict().
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_Active ¶ added in v0.1.0
type Dict_Active 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 X_Native_Dict ¶ added in v0.1.0
func X_Native_Dict() Dict_Active
X_Native_Dict native model without TableName.
func (*Dict_Active) Field_CreatedAt ¶ added in v0.1.0
func (*Dict_Active) Field_CreatedAt(prefixes ...string) string
Field_CreatedAt hold model `Dict` column name. if prefixes not exist returns `created_at`, others `{prefixes[0]}_created_at`
func (*Dict_Active) Field_Id ¶ added in v0.1.0
func (*Dict_Active) Field_Id(prefixes ...string) string
Field_Id hold model `Dict` column name. if prefixes not exist returns `id`, others `{prefixes[0]}_id`
func (*Dict_Active) Field_IsPin ¶ added in v0.1.0
func (*Dict_Active) Field_IsPin(prefixes ...string) string
Field_IsPin hold model `Dict` column name. if prefixes not exist returns `is_pin`, others `{prefixes[0]}_is_pin`
func (*Dict_Active) Field_Key ¶ added in v0.1.0
func (*Dict_Active) Field_Key(prefixes ...string) string
Field_Key hold model `Dict` column name. if prefixes not exist returns `key`, others `{prefixes[0]}_key`
func (*Dict_Active) Field_Name ¶ added in v0.1.0
func (*Dict_Active) Field_Name(prefixes ...string) string
Field_Name hold model `Dict` column name. if prefixes not exist returns `name`, others `{prefixes[0]}_name`
func (*Dict_Active) Field_Remark ¶ added in v0.1.0
func (*Dict_Active) Field_Remark(prefixes ...string) string
Field_Remark hold model `Dict` column name. if prefixes not exist returns `remark`, others `{prefixes[0]}_remark`
func (*Dict_Active) Field_UpdatedAt ¶ added in v0.1.0
func (*Dict_Active) Field_UpdatedAt(prefixes ...string) string
Field_UpdatedAt hold model `Dict` column name. if prefixes not exist returns `updated_at`, others `{prefixes[0]}_updated_at`
func (*Dict_Active) TableName ¶ added in v0.1.0
func (*Dict_Active) TableName() string
TableName hold model `Dict` table name returns `dict`.
func (*Dict_Active) X_Executor ¶ added in v0.1.2
X_TableName hold table name when call New_X_Dict or Dict_Active.As that you defined.
func (*Dict_Active) X_TableName ¶ added in v0.1.0
func (x *Dict_Active) X_TableName() string
X_TableName hold table name when call New_X_Dict or Dict_Active.As that you defined.