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 ¶
NewContext 返回APP上下文 取值方法 page := c.Value(Page).(int) pageSize := c.Value(PageSize).(int)
Click to show internal directories.
Click to hide internal directories.