types

package
v0.0.0-...-2f954c6 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

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
	User    *ContextUser
}

Context 请求上下文结构

type ContextUser

type ContextUser struct {
	ID        string `json:"_id"`       // 用户 id
	Username  string `json:"username"`  // 用户名
	Phone     string `json:"phone"`     // 手机号
	Email     string `json:"email"`     // 邮箱
	Avatar    string `json:"avatar"`    // 头像
	Language  string `json:"language"`  // 语言
	IsSysUser bool   `json:"isSysUser"` // 是否为系统用户
	Sid       string `json:"sid"`       // session id
}

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

Jump to

Keyboard shortcuts

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