yogai/storage/storage.go

22 lines
439 B
Go
Raw Normal View History

2023-05-08 15:53:06 +02:00
package storage
import (
2023-07-06 13:25:51 +02:00
"context"
2024-09-17 07:10:35 +02:00
"go-mod.ewintr.nl/yogai/model"
2023-05-08 15:53:06 +02:00
)
2023-07-06 13:25:51 +02:00
type FeedRelRepository interface {
2023-05-27 14:36:22 +02:00
Save(feed *model.Feed) error
FindByStatus(statuses ...model.FeedStatus) ([]*model.Feed, error)
}
2023-07-06 13:25:51 +02:00
type VideoRelRepository interface {
2023-05-08 15:53:06 +02:00
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
}
2023-07-06 13:25:51 +02:00
type VideoVecRepository interface {
Save(ctx context.Context, video *model.Video) error
}