xroleutils

package
v0.0.0-...-6e4fad1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2025 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CustomerPermTTL    = modelCustomer.CustomerPermTTL
	CustomerPermission = modelCustomer.CustomerPermission
	CustomerRoles      = modelCustomer.CustomerRoles
)

Functions

func AddCustomerRolePermission

func AddCustomerRolePermission(ctx echo.Context, roleID uint) (err error)

func AllowedByRouteName

func AllowedByRouteName(ctx echo.Context, name string) bool

func AllowedByRoutePath

func AllowedByRoutePath(ctx echo.Context, routePath string) bool

func CustomerRolePermissionTypeCheck

func CustomerRolePermissionTypeCheck(ctx echo.Context, current string, typ string, permission string, parsed interface{}) (mp interface{}, err error)

func CustomerRolePermissionTypeFireRender

func CustomerRolePermissionTypeFireRender(ctx echo.Context) (err error)

func CustomerRolePermissionTypeGenerate

func CustomerRolePermissionTypeGenerate(ctx echo.Context) (mp map[string]string, err error)

func EditCustomerRolePermission

func EditCustomerRolePermission(ctx echo.Context, roleID uint) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL