models

package
v0.0.0-...-b9b72ee Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GormModel

type GormModel struct {
	gorm.Model
	Name     string
	Birthday time.Time
}

type TagModel

type TagModel struct {
	gorm.Model
	Title   string `gorm:"not null;size:64"`
	Content string `gorm:"not null;index:title_index"`
	Test    string `gorm:"-"` //忽略
	Desc    string `gorm:"type:text"`
}

type User

type User struct {
	Id    int
	Name  string
	Age   string
	Pic   string
	Phone string
}

func (User) TableName

func (User) TableName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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