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 CreateOrUpdateRoleRequestDTO ¶
type CreateOrUpdateRoleRequestDTO struct { Name string `binding:"required"` Resources []*RoleResourceRequestDTO `binding:"required,min=1,dive"` }
type PermissionResponseDTO ¶
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 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 }
Click to show internal directories.
Click to hide internal directories.