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