model

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StuDesc

func StuDesc() *orm.ModelDescriptor

StuDesc student entity descriptor define

Types

type Models

type Models struct {
	ModelRegistry orm.ModelRegistry `inject:"DB"`
}

Models db models

func (*Models) AfterNew

func (p *Models) AfterNew()

AfterNew registry db model

type Stu

type Stu struct {
	gorm.Model
	Name    string
	Address string
	Sex     string
}

Stu student entity define

Jump to

Keyboard shortcuts

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