mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 05:11:34 +00:00
15 lines
342 B
Go
15 lines
342 B
Go
package source
|
|
|
|
import (
|
|
"context"
|
|
"tercul/internal/domain"
|
|
)
|
|
|
|
// SourceRepository defines CRUD methods specific to Source.
|
|
type SourceRepository interface {
|
|
domain.BaseRepository[domain.Source]
|
|
|
|
ListByWorkID(ctx context.Context, workID uint) ([]domain.Source, error)
|
|
FindByURL(ctx context.Context, url string) (*domain.Source, error)
|
|
}
|