// User extracts the user object from gin.Context that VerifyPerm set.
User extracts the user object from gin.Context that VerifyPerm set.
// User extracts the user object from gin . Context that VerifyPerm set .
func User(c *gin.Context) interface{} {
	v, ok := c.Get(UserKey)
	if !ok {
		return nil
	}
	return v
}
func User ( c * gin . Context ) interface { } { v , ok := c . Get ( UserKey ) if ! ok { return nil } return v }
User extracts the user object from gin.Context that VerifyPerm set.
User extracts the user object from gin . Context that VerifyPerm set .