mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 05:11:34 +00:00
16 lines
438 B
Go
16 lines
438 B
Go
package category
|
|
|
|
import (
|
|
"context"
|
|
"tercul/internal/domain"
|
|
)
|
|
|
|
// CategoryRepository defines CRUD methods specific to Category.
|
|
type CategoryRepository interface {
|
|
domain.BaseRepository[domain.Category]
|
|
|
|
FindByName(ctx context.Context, name string) (*domain.Category, error)
|
|
ListByWorkID(ctx context.Context, workID uint) ([]domain.Category, error)
|
|
ListByParentID(ctx context.Context, parentID *uint) ([]domain.Category, error)
|
|
}
|