mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 05:11:34 +00:00
16 lines
437 B
Go
16 lines
437 B
Go
package collection
|
|
|
|
import (
|
|
"context"
|
|
"tercul/internal/domain"
|
|
)
|
|
|
|
// CollectionRepository defines CRUD methods specific to Collection.
|
|
type CollectionRepository interface {
|
|
domain.BaseRepository[domain.Collection]
|
|
|
|
ListByUserID(ctx context.Context, userID uint) ([]domain.Collection, error)
|
|
ListPublic(ctx context.Context) ([]domain.Collection, error)
|
|
ListByWorkID(ctx context.Context, workID uint) ([]domain.Collection, error)
|
|
}
|