22 lines
432 B
Go
22 lines
432 B
Go
package storage
|
|
|
|
import (
|
|
"context"
|
|
|
|
"ewintr.nl/yogai/model"
|
|
)
|
|
|
|
type FeedRelRepository interface {
|
|
Save(feed *model.Feed) error
|
|
FindByStatus(statuses ...model.FeedStatus) ([]*model.Feed, error)
|
|
}
|
|
|
|
type VideoRelRepository interface {
|
|
Save(video *model.Video) error
|
|
FindByStatus(statuses ...model.VideoStatus) ([]*model.Video, error)
|
|
}
|
|
|
|
type VideoVecRepository interface {
|
|
Save(ctx context.Context, video *model.Video) error
|
|
}
|