permission

package
v0.0.0-...-6d0effa Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Permission

type Permission struct {
	ID   int64
	Name string
}

func (*Permission) DeletePermission

func (p *Permission) DeletePermission(ctx context.Context) error

func (*Permission) SavePermission

func (p *Permission) SavePermission(ctx context.Context) error

type RolePermission

type RolePermission struct {
	ID         int64
	Role       *role.Role
	Permission *Permission
}

func (*RolePermission) DeletePermission

func (rp *RolePermission) DeletePermission(ctx context.Context) error

func (*RolePermission) SavePermission

func (rp *RolePermission) SavePermission(ctx context.Context) error

type UserPermission

type UserPermission struct {
	ID         int64
	User       *user.User
	Permission *Permission
}

func (*UserPermission) DeletePermission

func (up *UserPermission) DeletePermission(ctx context.Context) error

func (*UserPermission) SavePermission

func (up *UserPermission) SavePermission(ctx context.Context) error

Jump to

Keyboard shortcuts

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