Move to Federated Gitea
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user