Files

47 lines
701 B
Go

package domain
import "time"
type Post struct {
ID string
Subreddit string
Title string
Author string
URL string
SelfText string
Score int
CreatedUTC time.Time
FetchedAt time.Time
Relevance *float64
Summary *string
Read bool
Starred bool
Dismissed bool
}
type Subreddit struct {
Name string
Enabled bool
PollSort string
AddedAt time.Time
}
type Filter struct {
ID int64
Subreddit string
Pattern string
IsRegex bool
}
type Feedback struct {
ID int64
PostID string
Vote int // +1 interesting, -1 not
CreatedAt time.Time
}
type Interests struct {
Description string
Examples []Feedback
}