Documentation ¶
Index ¶
- Variables
- func AdminUID(c echo.Context, onlyBackendAdmin ...bool) uint
- func CheckPerm(ctx echo.Context, route string) error
- func ClearPermissionCache(ctx context.Context, customerID uint64)
- func Customer(c echo.Context) *dbschema.OfficialCustomer
- func IsAdmin(c echo.Context, onlyBackendAdmin ...bool) bool
- func IsBackendAdmin(c echo.Context) bool
- func User(c echo.Context) *dbschema.NgingUser
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PermissionCacheKey 权限缓存Key前缀 PermissionCacheKey = `customer:permission:` LeftNavigateCacheKey = `customer:navigate:left:` TopNavigateCacheKey = `customer:navigate:top:` )
View Source
var ( URLFor = top.URLFor AbsoluteURL = top.AbsoluteURL ImageProxyURL = top.ImageProxyURL ResizeImageURL = top.ResizeImageURL PictureWithDefaultHTML = top.PictureWithDefaultHTML OutputContent = top.OutputContent )
Functions ¶
func ClearPermissionCache ¶
ClearPermissionCache 删除用户的权限缓存
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.