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)
Click to show internal directories.
Click to hide internal directories.