bookUsecase

package
v0.0.0-...-7e9aa71 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookUsecase

type BookUsecase interface {
	CreateOneBook(req *book.CreateBookReq) (uint, error)
	SearchBooks(req *book.SearchBooksReq, roleID uint) (*book.SearchBooksRes, error)
	FindBookInIDs(req *bookPb.FindBooksInIdsReq) (*bookPb.FindBooksInIdsRes, error)
	GetOneBook(bookID uint, roleID uint) (*book.BookRes, error)
	GetOneBookFilePath(bookID uint) (string, error)
	UpdateOneBookDetail(req *book.UpdateBookDetailReq) error
	GetTags() ([]book.BookTags, error)
	UpdateOneBookCover(bookID uint, newImagePath string) error
	UpdateOneBookFile(bookID uint, newFilePath string) error
}

func NewBookUsecaseImpl

func NewBookUsecaseImpl(cfg *config.Config, bookRepository bookRepository.BookRepository) BookUsecase

Jump to

Keyboard shortcuts

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