common

package
v0.0.0-...-6f9dc6e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithUserID

func ContextWithUserID(c *gin.Context, id uint64)

ContextWithUserID 将用户id设置到 context 中

func UserIDFromContext

func UserIDFromContext(c *gin.Context) (uint64, bool)

UserIDFromContext 从 context 中获取用户id

Types

This section is empty.

Jump to

Keyboard shortcuts

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