Documentation ¶
Index ¶
- func AddUserRolePermission(ctx echo.Context, roleID uint) (err error)
- func EditUserRolePermission(ctx echo.Context, roleID uint) (err error)
- func GetRoleList(c echo.Context) (roleList []*role.UserRoleWithPermissions)
- func UserRolePermissionTypeCheck(ctx echo.Context, current string, typ string, permission string, ...) (mp interface{}, err error)
- func UserRolePermissionTypeFireRender(ctx echo.Context) (err error)
- func UserRolePermissionTypeGenerate(ctx echo.Context) (mp map[string]string, err error)
- func UserRoles(ctx echo.Context) []*role.UserRoleWithPermissions
- type UserRoleWithPermissions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditUserRolePermission ¶
func GetRoleList ¶
func GetRoleList(c echo.Context) (roleList []*role.UserRoleWithPermissions)
Types ¶
type UserRoleWithPermissions ¶
type UserRoleWithPermissions struct { *dbschema.NgingUserRole Permissions []*dbschema.NgingUserRolePermission `db:"-,relation=role_id:id"` }
Click to show internal directories.
Click to hide internal directories.