aaa

package
v1.23.8 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextUserGetter

type ContextUserGetter interface {
	GetContextUser(c *gin.Context) (models.CommonUserIface, bool)
}

type ContextUserOperator

type ContextUserOperator interface {
	ContextUserGetter
	ContextUserSetter
}

type ContextUserSetter

type ContextUserSetter interface {
	SetContextUser(c *gin.Context, user models.CommonUserIface)
}

type UserInfoHandler

type UserInfoHandler struct {
	ContextUserKey string
}

func NewUserInfoHandler

func NewUserInfoHandler() *UserInfoHandler

func (*UserInfoHandler) GetContextUser

func (i *UserInfoHandler) GetContextUser(c *gin.Context) (models.CommonUserIface, bool)

func (*UserInfoHandler) SetContextUser

func (i *UserInfoHandler) SetContextUser(c *gin.Context, user models.CommonUserIface)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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