mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 05:11:34 +00:00
17 lines
486 B
Go
17 lines
486 B
Go
package book
|
|
|
|
import (
|
|
"context"
|
|
"tercul/internal/domain"
|
|
)
|
|
|
|
// BookRepository defines CRUD methods specific to Book.
|
|
type BookRepository interface {
|
|
domain.BaseRepository[domain.Book]
|
|
|
|
ListByAuthorID(ctx context.Context, authorID uint) ([]domain.Book, error)
|
|
ListByPublisherID(ctx context.Context, publisherID uint) ([]domain.Book, error)
|
|
ListByWorkID(ctx context.Context, workID uint) ([]domain.Book, error)
|
|
FindByISBN(ctx context.Context, isbn string) (*domain.Book, error)
|
|
}
|