permission_service_public

package
v0.0.0-...-1dc8ef7 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	ReadPermissionById(permissionId string) (*permission_model.Permission, error)
	UpdatePermissionById(permissionId string, params permission_model.PermissionParams) error
	DeletePermissionById(permissionId string) (*permission_model.Permission, error)
	CreatePermission(params permission_model.PermissionParams) error
	ReadPermissionsByKeys(keys []string) ([]*permission_model.Permission, error)
	ReadAllPermissions() ([]*permission_model.Permission, error)
	ReadPermissionsByQuery(ids []string, regex string) ([]*permission_model.Permission, error)
	IsPermissionsExist([]string) ([]string, bool)
}

func New

func New(db *gorm.DB, model permission_model.Model) Service

Jump to

Keyboard shortcuts

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