Documentation ¶
Index ¶
Constants ¶
View Source
const UserIdKey = "user_id"
View Source
const UserKey = "user"
Variables ¶
View Source
var NewContext = func(ctx *gin.Context) Context { return &Ctx{ Context: ctx, } }
NewContext 最好在中间件已经赋值以下两个参数 ginCtx.Set("user", nil) ginCtx.Set("user_id", nil)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.