common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseToken

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

ReleaseToken 根据用户 生成 Token

Types

type Claims

type Claims struct {
	UserId uint
	jwt.StandardClaims
}

func ParseToken

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

ParseToken 解析 Token

Jump to

Keyboard shortcuts

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