32 lines
707 B
Go
32 lines
707 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Application struct {
|
|
Name string `yaml:"name"`
|
|
Description string `yaml:"description"`
|
|
TwitterHandle string `yaml:"twitter_handle"`
|
|
YouTubeChannelID string `yaml:"youtube_channel_id"`
|
|
Hashtags []string `yaml:"hashtags"`
|
|
}
|
|
|
|
type ContentSource string
|
|
|
|
const (
|
|
SourceTwitterAccount ContentSource = "X·Account"
|
|
SourceTwitterSearch ContentSource = "X·Search"
|
|
SourceYouTube ContentSource = "YouTube"
|
|
)
|
|
|
|
type ContentItem struct {
|
|
ID string
|
|
Source ContentSource
|
|
Author string
|
|
AuthorHandle string
|
|
Title string
|
|
Body string
|
|
URL string
|
|
PublishedAt time.Time
|
|
AppName string
|
|
}
|