privilege

package
v3.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 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 PermissionInterface

type PermissionInterface interface {
	SetUserGroupPermission(supplierAccount, gourpID string, permission *metadata.PrivilegeUserGroup) error
	GetUserGroupPermission(supplierAccount, groupID string) (*metadata.GroupPrivilege, error)
	GetUserPermission(supplierAccount, userName string) (*metadata.Gprivilege, error)
}

PermissionInterface the permission methods

func NewPermission

NewPermission create a new permission instance

type RolePermission

type RolePermission interface {
	CreatePermission(supplierAccount, objID, propertyID string, data []string) error
	GetPermission(supplierAccount, objID, propertyID string) (interface{}, error)
}

RolePermission role permission

func NewRole

NewRole create a new role instance

type UserGroupInterface

type UserGroupInterface interface {
	CreateUserGroup(supplierAccount string, userGroup *metadata.UserGroup) error
	DeleteUserGroup(supplierAccount, groupID string) error
	UpdateUserGroup(supplierAccount, groupID string, data mapstr.MapStr) error
	SearchUserGroup(supplierAccount string, cond condition.Condition) ([]metadata.UserGroup, error)
}

UserGroupInterface the permission user groups methods

func NewUserGroup

NewUserGroup create a user group instance

Jump to

Keyboard shortcuts

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