model

package
v0.0.0-...-92a1e37 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 上下文变量存储键名,前后端系统共享
	ContextKey = "ContextKey"
	// 默认管理员ID
	DefaultAdminId = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

请求上下文结构

type ContextUser

type ContextUser struct {
	Id      int    // 用户ID
	Account string // 用户账号
}

请求上下文中的用户信息

type Guser

type Guser internal.Guser

Guser is the golang structure for table guser.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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