definition

package
v0.0.0-...-0aa8bca Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication interface {
	Register(ctx context.Context, req *models.RegisterReq) error
	Login(ctx context.Context, authID, password string) (*models.UserToken, error)
	Logout(ctx context.Context, token string) error
	RefreshToken(ctx context.Context, token string) (*models.UserToken, error)
}

type Authorization

type Authorization interface {
	GetAllUserAccess(ctx context.Context, token string) ([]models.RolePermission, error)
}

type Intools

type Intools interface {
	GetPermission(ctx context.Context, queries url.Values, token string) (*pagespecifier.IntoolsResponse, error)
	AddPermission(ctx context.Context, req *models.Customer, token string) error
	UpdatePermission(ctx context.Context, req *models.Customer, token string) error

	GetRole(ctx context.Context, queries url.Values, token string) (*pagespecifier.IntoolsResponse, error)
	UpdateRole(ctx context.Context, token string, req *models.InternalRole) error
	AddRole(ctx context.Context, req *models.AddRoleReq, token string) error

	AddPermissionToRole(ctx context.Context, token string, req *models.InternalRolePermission) error
	UpdateRolePermission(ctx context.Context, token string, req *models.InternalRolePermission) error
	GetPermissionByRole(ctx context.Context, roleID int64, token string) ([]*models.Customer, error)

	GetUser(ctx context.Context, queries url.Values, token string) (*pagespecifier.IntoolsResponse, error)
	AddUserAccess(ctx context.Context, req *models.UserAccess, token string) error
	ChangeStatusUserAccess(ctx context.Context, req *models.UserAccess, token string) error
	GetUserAccessByIDInternal(ctx context.Context, userID int64, token string) ([]*models.UserAccess, error)
}

Jump to

Keyboard shortcuts

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