storage_admin_service

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 {
	storage_service_public.Service
	ReadStorageByKey(key string, isIncludeValue bool) (*storage_model.Storage, error)
	UpdateStorageByKey(key string, storageParams storage_model.StorageParams) error
	DeleteStorageByKey(key string) (*storage_model.Storage, error)
	CreateStorage(storageParams storage_model.StorageParams) error
	ReadStoragesByKeys(keys []string, isIncludeValue bool) ([]*storage_model.Storage, error)
	ReadAllStorages(isIncludeValue bool) ([]*storage_model.Storage, error)
	ReadStoragesByQuery(keys, excludePermission, includePermission []string, isIncludeValue bool) ([]*storage_model.Storage, error)
}

func New

func New(db *gorm.DB, model storage_model.Model, publicService storage_service_public.Service) Service

Jump to

Keyboard shortcuts

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