storage

package
v0.0.0-...-01eefb7 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorI

type AuthorI interface {
	GetAuthor(id string) (models.Author, error)
	GetAllAuthors(queryParam models.ApplicationQueryParamModel) ([]models.Author, error)
	CreateAuthor(details models.Author) (string, error)
	UpdateAuthor(details models.UpdateAuthor, id string) (int64, error)
	DeleteAuthor(id string) (int64, error)
}

type BookCategoryI

type BookCategoryI interface {
	GetBookCategory(id string) (models.BookCategory, error)
	GetAllBookCategories(queryParam models.ApplicationQueryParamModel) ([]models.BookCategory, error)
	CreateBookCategory(details models.BookCategory) (string, error)
	UpdateBookCategory(details *models.UpdateBookCategory, id string) (int64, error)
	DeleteBookCategory(id string) (int64, error)
}

type BookI

type BookI interface {
	GetBook(id string) (models.Book, error)
	GetAllBooks(queryParam models.ApplicationQueryParamModel) ([]models.Book, error)
	CreateBook(details models.Book) (string, error)
	UpdateBook(details models.UpdateBook, id string) (int64, error)
	DeleteBook(id string) (int64, error)
}

type StorageI

type StorageI interface {
	CloseDB() error
	BookCategoryRepo() BookCategoryI
	BookRepo() BookI
	AuthorRepo() AuthorI
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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