common_mysql

package
v0.0.0-...-dc24fe2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 是否删除,0-否,1-是
	IsDelYes = 1
	IsDelNo  = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnCreateModifyDeleteTime

type ColumnCreateModifyDeleteTime struct {
	ColumnCreateModifyTime
	ColumnDeleteTime
}

type ColumnCreateModifyTime

type ColumnCreateModifyTime struct {
	CreateTime int64 `gorm:"column:created_at;not null;default 0"`
	ModifyTime int64 `gorm:"column:modified_at;not null;default 0"`
}

type ColumnDeleteTime

type ColumnDeleteTime struct {
	IsDel      int8  `gorm:"column:is_del;not null;default 0"`
	DeleteTime int64 `gorm:"column:deleted_at;not null;default 0"`
}

Jump to

Keyboard shortcuts

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