app

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminUserId = "admin.user.id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	//context.Context
	Request *http.Request

	// 用户相关数据
	User struct {
		Id int64
	}
	// 请求分页相关数据
	Query struct {
		Page     int
		PageSize int
		Export   string
	}
	// contains filtered or unexported fields
}

func NewContext

func NewContext(ctx *gin.Context) *Context

NewContext 返回APP上下文 取值方法 page := c.Value(Page).(int) pageSize := c.Value(PageSize).(int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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