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