model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPermission

type IPermission interface {
	// Query data
	Query(ctx context.Context, params schema.PermissionQueryParam, opts ...schema.PermissionQueryOptions) (*schema.PermissionQueryResult, error)
	// Query specified data
	Get(ctx context.Context, UUID string, opts ...schema.PermissionQueryOptions) (*schema.Permission, error)
	// Create data
	Create(ctx context.Context, item schema.Permission) error
	// Update data
	Update(ctx context.Context, UUID string, item schema.Permission) error
	// Update parent path
	UpdateParentPath(ctx context.Context, UUID, parentPath string) error
	// Delete data
	Delete(ctx context.Context, UUID string) error
}

IPermission - Manage Permission storage interface

type IRole

type IRole interface {
	// Query data
	Query(ctx context.Context, params schema.RoleQueryParam, opts ...schema.RoleQueryOptions) (*schema.RoleQueryResult, error)
	// Query specified data
	Get(ctx context.Context, UUID string, opts ...schema.RoleQueryOptions) (*schema.Role, error)
	// Create data
	Create(ctx context.Context, item schema.Role) error
	// Update data
	Update(ctx context.Context, UUID string, item schema.Role) error
	// Delete data
	Delete(ctx context.Context, UUID string) error
}

IRole - Manage Role

type IUser

type IUser interface {
	// Query data
	Query(ctx context.Context, params schema.UserQueryParam, opts ...schema.UserQueryOptions) (*schema.UserQueryResult, error)
	// Query specified data
	Get(ctx context.Context, UUID string, opts ...schema.UserQueryOptions) (*schema.User, error)
	// Create data
	Create(ctx context.Context, item schema.User) error
	// Update data
	Update(ctx context.Context, UUID string, item schema.User) error
	// Delete data
	Delete(ctx context.Context, UUID string) error
	// Update status
	UpdateStatus(ctx context.Context, UUID string, status int) error
	// Update password
	UpdatePassword(ctx context.Context, UUID, password string) error
}

IUser - User object storage interface

Directories

Path Synopsis
impl

Jump to

Keyboard shortcuts

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