2023-05-08 15:53:06 +02:00
|
|
|
package storage
|
|
|
|
|
|
|
|
import (
|
|
|
|
"ewintr.nl/yogai/model"
|
|
|
|
)
|
|
|
|
|
2023-05-27 14:36:22 +02:00
|
|
|
type FeedRepository interface {
|
|
|
|
Save(feed *model.Feed) error
|
|
|
|
FindByStatus(statuses ...model.FeedStatus) ([]*model.Feed, error)
|
|
|
|
}
|
|
|
|
|
2023-05-08 15:53:06 +02:00
|
|
|
type VideoRepository interface {
|
|
|
|
Save(video *model.Video) error
|
2023-05-27 14:36:22 +02:00
|
|
|
FindByStatus(statuses ...model.VideoStatus) ([]*model.Video, error)
|
2023-05-08 15:53:06 +02:00
|
|
|
}
|