tool

package
v1.18.4 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 1 Imported by: 52

Documentation

Index

Constants

View Source
const (
	RespCodeSuccess  = 200
	RespCodeNotFound = 404
	RespCodeError    = 500
)
View Source
const PageCtx = "PageCtx"
View Source
const WebsiteCtx = "WebSiteCtx"

Variables

This section is empty.

Functions

This section is empty.

Types

type Pk

type Pk struct {
	// ID
	Id int `orm:"pk;auto;column(id)"`
}

type TableChangeInfo

type TableChangeInfo struct {
	// 状态
	Status int `orm:"column(status)"`
	// 创建时间
	CreateTime time.Time `orm:"auto_now_add;type(datetime);column(ctime)"`
	// 修改时间
	UpdateTime time.Time `orm:"auto_now;type(datetime);column(mtime)"`
}

type TableInfo

type TableInfo struct {
	// 创建时间
	CreateTime time.Time `orm:"auto_now_add;type(datetime);column(ctime)"`
}

Jump to

Keyboard shortcuts

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