model

package
v0.0.0-...-c4778a4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModel

type BaseModel struct {
	ID int64 `orm:"column(id);pk;auto"` // 主键
}

BaseModel 基础Model

type BaseModifyModel

type BaseModifyModel struct {
	BaseModel
	CreateUserID int64     `orm:"column(create_user_id);null"` //创建者
	UpdateUserID int64     `orm:"column(update_user_id);null"` //最后更新者
	CreateDate   time.Time `orm:"auto_now_add;type(datetime)"` //创建时间
	UpdateDate   time.Time `orm:"auto_now;type(datetime)"`     //最后更新时间
}

BaseModifyModel 含修改字段的Model

Jump to

Keyboard shortcuts

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