mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-10 22:17:44 +00:00
25 lines
505 B
Go
25 lines
505 B
Go
package domain
|
|
|
|
import "context"
|
|
|
|
type Watcher struct {
|
|
ID int64
|
|
|
|
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
|
|
}
|