Documentation ¶
Index ¶
- func ACL(ormService *datalayer.ORM, roleEntity *entity.RoleEntity, resource string, ...) bool
- func GetRole(c *gin.Context, request *acl.RoleRequestDTO) (*acl.RoleResponseDTO, error)
- func ListResources(c *gin.Context) *acl.ResourcesResponseDTO
- func ListRoles(c *gin.Context, request *crud.ListRequest) *acl.RolesResponseDTO
- func ListUserResources(c *gin.Context, getUserFunc func(c *gin.Context) beeorm.Entity) *acl.ResourcesResponseDTO
- func RolesColumns() []*crud.Column
- type UserRoleGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRole ¶ added in v1.2.59
func GetRole(c *gin.Context, request *acl.RoleRequestDTO) (*acl.RoleResponseDTO, error)
func ListResources ¶ added in v1.2.59
func ListResources(c *gin.Context) *acl.ResourcesResponseDTO
func ListRoles ¶ added in v1.2.59
func ListRoles(c *gin.Context, request *crud.ListRequest) *acl.RolesResponseDTO
func ListUserResources ¶ added in v1.2.61
func RolesColumns ¶ added in v1.2.59
Types ¶
type UserRoleGetter ¶ added in v1.2.61
type UserRoleGetter interface {
GetRole() *entity.RoleEntity
}
Click to show internal directories.
Click to hide internal directories.