auth

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteCookie

func DeleteCookie(ctx *fiber.Ctx)

删除 Cookie

func GetUserId

func GetUserId(ctx *fiber.Ctx) int64

获取账号ID

func GetUserInfo

func GetUserInfo(ctx *fiber.Ctx) model.User

获取账号信息

func IsAdmin

func IsAdmin(ctx *fiber.Ctx) bool

是否为管理员

func SetCookie

func SetCookie(ctx *fiber.Ctx, data string)

设置 Cookie

Types

This section is empty.

Jump to

Keyboard shortcuts

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