model

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Db *gorm.DB

Functions

This section is empty.

Types

type User

type User struct {
	Id       int    `gorm:"primaryKey"`
	Name     string `gorm:"unique"`
	Phone    string `gorm:"unique"`
	Sex      string
	Add_time int
	Status   int
}

func (*User) GetInfoById

func (this *User) GetInfoById(id int) *User

func (*User) GetLists

func (this *User) GetLists()

func (*User) Register

func (this *User) Register(name string, phone string, sex string) (int, error, int)

注册用户

func (User) TableName

func (user User) TableName() string

Jump to

Keyboard shortcuts

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