middleware

package
v0.2.8-beta17 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package middleware @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Session *ghttp.Session  // 当前Session管理对象
	SysUser *ContextSysUser // 上下文用户信息
	Data    g.Map           // 自定KV变量,业务模块根据需要设置,不固定
}

Context 请求上下文结构

type ContextSysUser

type ContextSysUser struct {
	Id        int    // 用户ID
	Userid    int    // 用户账号
	NickName  string // 用户名称
	AvatarPic string // 用户头像
	IsAdmin   bool   // 是否是管理员
}

ContextSysUser 请求上下文中的用户信息

Jump to

Keyboard shortcuts

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