common

package
v0.0.0-...-99ab738 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func GetDB

func GetDB() *gorm.DB

func InitConfig

func InitConfig()

func InitDB

func InitDB() *gorm.DB

mysql数据库

func ReleaseToken

func ReleaseToken(user model.User) (string, error)

Types

type Claims

type Claims struct {
	UserId int64
	jwt.MapClaims
}

func ParseToken

func ParseToken(token string) (*jwt.Token, *Claims, error)

解析token

Jump to

Keyboard shortcuts

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