app

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminInfo

type AdminInfo struct {
	admin.Admin
}

func GetAdminInfo

func GetAdminInfo(ctx *gin.Context) (AdminInfo, error)

GetAdminInfo 获取登陆者的用户信息

type TokenPayload

type TokenPayload struct {
	UserId int64 `json:"id"`
}

func ParseUserByToken

func ParseUserByToken(token string) (TokenPayload, error)

ParseUserByToken 通过token解析用户

Jump to

Keyboard shortcuts

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