common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitApplicationConfig

func InitApplicationConfig()

初始化配置文件

func ReleaseToken

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

登录成功后调用此方法发送token

Types

type Claims

type Claims struct {
	Username string
	jwt.StandardClaims
}

token的Claims

func ParseToken

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

解析token

Jump to

Keyboard shortcuts

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