mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 05:11:34 +00:00
16 lines
426 B
Go
16 lines
426 B
Go
package author
|
|
|
|
import (
|
|
"context"
|
|
"tercul/internal/domain"
|
|
)
|
|
|
|
// AuthorRepository defines CRUD methods specific to Author.
|
|
type AuthorRepository interface {
|
|
domain.BaseRepository[domain.Author]
|
|
|
|
ListByWorkID(ctx context.Context, workID uint) ([]domain.Author, error)
|
|
ListByBookID(ctx context.Context, bookID uint) ([]domain.Author, error)
|
|
ListByCountryID(ctx context.Context, countryID uint) ([]domain.Author, error)
|
|
}
|