role

package
v0.0.0-...-73c3907 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func New

func New(db *gorm.DB) *Builder

func (*Builder) Actions

func (b *Builder) Actions(vs []*vuetify.DefaultOptionItem) *Builder

func (*Builder) Configure

func (b *Builder) Configure(pb *presets.Builder) *presets.ModelBuilder

func (*Builder) EditorSubject

func (b *Builder) EditorSubject(v string) *Builder

func (*Builder) Resources

func (b *Builder) Resources(vs []*vuetify.DefaultOptionItem) *Builder

type Role

type Role struct {
	gorm.Model

	Name        string                  `gorm:"unique"`
	Permissions []*perm.DefaultDBPolicy `gorm:"foreignKey:ReferID"`
}

Jump to

Keyboard shortcuts

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