model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *sql.DB
)

Functions

func ConnectMySQL

func ConnectMySQL(mysqlCfg *config.MySQLConfig) *sql.DB

ConnectMySQL 连接到MySQL

func InitMySQL

func InitMySQL()

InitMySQL 初始化MySQL连接池

Types

type User

type User struct {
	Id             int64
	Username       string
	Password       string
	ProfilePicture string
}

User 用户

Jump to

Keyboard shortcuts

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