Documentation ¶
Index ¶
- Variables
- func AdminUID(c echo.Context, onlyBackendAdmin ...bool) uint
- func AgentLevel(c echo.Context) *dbschema.OfficialCustomerAgentLevel
- 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 AgentLevel ¶
func AgentLevel(c echo.Context) *dbschema.OfficialCustomerAgentLevel
AgentLevel 前台会员客户代理登记信息
func ClearPermissionCache ¶
ClearPermissionCache 删除用户的权限缓存
func IsBackendAdmin ¶ added in v0.1.1
IsBackendAdmin 是否是后台管理元
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.