models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllTables = []interface{}{
	&Demo{},
}

Functions

This section is empty.

Types

type Demo

type Demo struct {
	ID          int64          `json:"id" gorm:"column:id;primaryKey"`                         // 自增主键
	UserName    string         `json:"user_name" gorm:"column:user_name"`                      // 用户名
	CreatedTime time.Time      `json:"created_time" gorm:"column:created_time;autoCreateTime"` // 创建时间
	UpdatedTime time.Time      `json:"updated_time" gorm:"column:updated_time;autoUpdateTime"` // 更新时间
	DeletedTime gorm.DeletedAt `json:"-" gorm:"column:deleted_time"`
}

func (*Demo) ColumnUserName

func (d *Demo) ColumnUserName() string

Jump to

Keyboard shortcuts

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