apollo-backend/internal/domain/watcher.go
Andre Medeiros 698c65b1f4 tweaks
2021-09-25 14:02:00 -04:00

26 lines
531 B
Go

package domain
import "context"
type Watcher struct {
ID int64
CreatedAt float64
DeviceID int64
AccountID int64
SubredditID int64
Upvotes int64
Keyword string
Flair string
Domain string
}
type WatcherRepository interface {
GetByID(ctx context.Context, id int64) (Watcher, error)
GetBySubredditID(ctx context.Context, id int64) ([]Watcher, error)
Create(ctx context.Context, watcher *Watcher) error
Update(ctx context.Context, watcher *Watcher) error
Delete(ctx context.Context, id int64) error
}