Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperateTime ¶
type OperateTime struct { CreateTime timelib.MySQLTimestamp `db:"F_create_time" sql:"bigint(64) NOT NULL DEFAULT '0'" json:"createTime"` UpdateTime timelib.MySQLTimestamp `db:"F_update_time" sql:"bigint(64) NOT NULL DEFAULT '0'" json:"updateTime"` }
func (*OperateTime) BeforeInsert ¶
func (t *OperateTime) BeforeInsert()
func (*OperateTime) BeforeUpdate ¶
func (t *OperateTime) BeforeUpdate()
type PrimaryID ¶
type PrimaryID struct {
ID uint64 `db:"F_id" sql:"bigint unsigned NOT NULL AUTO_INCREMENT" json:"-"`
}
func (PrimaryID) PrimaryKey ¶
func (id PrimaryID) PrimaryKey() sqlx.FieldNames
type ReserveFields ¶
type ReserveFields struct { // 预留整数1 ReserveInt1 int32 `db:"F_reserve_int1" json:"-" sql:"int(32) NOT NULL DEFAULT '0'"` // 预留整数2 ReserveInt2 int32 `db:"F_reserve_int2" json:"-" sql:"int(32) NOT NULL DEFAULT '0'"` // 预留字符串1 ReserveString1 string `db:"F_reserve_string1" json:"-" sql:"varchar(255) NOT NULL DEFAULT ''"` // 预留字符串2 ReserveString2 string `db:"F_reserve_string2" json:"-" sql:"varchar(255) NOT NULL DEFAULT ''"` }
type SoftDelete ¶
type SoftDelete struct {
Enabled enumeration.Bool `db:"F_enabled" sql:"int(8) unsigned NOT NULL DEFAULT '1'" json:"-"`
}
func (*SoftDelete) Disable ¶
func (e *SoftDelete) Disable()
func (*SoftDelete) Enable ¶
func (e *SoftDelete) Enable()
Click to show internal directories.
Click to hide internal directories.