model

package
v0.0.0-...-d6956c3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Id        int32          `gorm:"column:id;primaryKey" redis:"id"`
	CreatedAt time.Time      `gorm:"column:created_at" redis:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at" redis:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" redis:"-" json:"-"`
}

type Test

type Test struct {
	Base `gorm:"embedded"`
	// 名称
	Name string `gorm:"name"`
}

Test 测试

func (*Test) TableName

func (*Test) TableName() string

Jump to

Keyboard shortcuts

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