tests

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDB

func MakeDB(dsn string) (*gorm.DB, error)

Types

type User

type User struct {
	ID        uint64 `json:"id"`
	Username  string `json:"username" gorm:"column:username;type:varchar;size:255;index"`
	Password  string `json:"password" gorm:"column:password;comment:'密码'"`
	Sex       string `json:"sex" gorm:"column:sex"`
	CreatedAt string `json:"created_at" gorm:"column:created_at"`
	UpdatedAt string `json:"updated_at" gorm:"column:updated_at"`
}

Jump to

Keyboard shortcuts

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