presets

package
v0.0.0-...-61829c1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 5 Imported by: 12

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) AfterInsert

func (id *PrimaryID) AfterInsert(result sql.Result) error

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()

Jump to

Keyboard shortcuts

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