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
Click to show internal directories.
Click to hide internal directories.