acl

package
v1.3.174 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignRoleToUserRequestDTO added in v1.2.50

type AssignRoleToUserRequestDTO struct {
	UserID uint64 `binding:"required"`
	RoleID uint64 `binding:"required"`
}

type CreateOrUpdateRoleRequestDTO

type CreateOrUpdateRoleRequestDTO struct {
	Name      string                    `binding:"required"`
	Resources []*RoleResourceRequestDTO `binding:"required,min=1,dive"`
}

type PermissionResponseDTO

type PermissionResponseDTO struct {
	ID   uint64
	Name string
}

type ResourceResponseDTO

type ResourceResponseDTO struct {
	ID          uint64
	Name        string
	Permissions []*PermissionResponseDTO
}

type ResourcesResponseDTO

type ResourcesResponseDTO struct {
	Resources []*ResourceResponseDTO
}

type RolePermissionRequestDTO

type RolePermissionRequestDTO struct {
	PermissionID uint64 `binding:"required"`
}

type RoleRequestDTO

type RoleRequestDTO struct {
	ID uint64 `binding:"required"`
}

type RoleResourceRequestDTO

type RoleResourceRequestDTO struct {
	ResourceID    uint64   `binding:"required"`
	PermissionIDs []uint64 `binding:"required"`
}

type RoleResponseDTO

type RoleResponseDTO struct {
	ID        uint64
	Name      string
	Resources []*ResourceResponseDTO `json:",omitempty"`
}

type RolesResponseDTO

type RolesResponseDTO struct {
	Rows        []*RoleResponseDTO
	Total       int
	Columns     []*crud.Column
	PageContext *ResourcesResponseDTO
}

Jump to

Keyboard shortcuts

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