2022-12-10 11:12:53 -08:00
|
|
|
package models
|
2022-04-02 12:05:32 -07:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Articles represents the model for an Article
|
|
|
|
type Articles struct {
|
2022-12-04 08:49:17 -08:00
|
|
|
ID uint `json:"ID"`
|
|
|
|
SourceID uint `json:"sourceId"`
|
|
|
|
Tags string `json:"tags"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
Url string `json:"url"`
|
|
|
|
PubDate time.Time `json:"pubdate"`
|
|
|
|
Video string `json:"video"`
|
|
|
|
VideoHeight uint16 `json:"videoHeight"`
|
|
|
|
VideoWidth uint16 `json:"videoWidth"`
|
|
|
|
Thumbnail string `json:"thumbnail"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
AuthorName string `json:"authorName"`
|
|
|
|
AuthorImage string `json:"authorImage"`
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type DiscordQueue struct {
|
2022-12-04 08:49:17 -08:00
|
|
|
ID uint `json:"ID"`
|
2022-04-02 12:05:32 -07:00
|
|
|
CreatedAt time.Time `json:"CreatedAt"`
|
|
|
|
UpdatedAt time.Time `json:"UpdatedAt"`
|
|
|
|
DeletedAt time.Time `json:"DeletedAt"`
|
2022-12-04 08:49:17 -08:00
|
|
|
ArticleId string `json:"articleId"`
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type DiscordWebHooks struct {
|
2022-12-04 08:49:17 -08:00
|
|
|
ID uint `json:"ID"`
|
2022-04-02 12:05:32 -07:00
|
|
|
CreatedAt time.Time `json:"CreatedAt"`
|
|
|
|
UpdatedAt time.Time `json:"UpdatedAt"`
|
|
|
|
DeletedAt time.Time `json:"DeletedAt"`
|
|
|
|
|
2022-12-04 08:49:17 -08:00
|
|
|
Name string `json:"name"`
|
|
|
|
Key string `json:"key"`
|
|
|
|
Url string `json:"url"`
|
|
|
|
Server string `json:"server"`
|
|
|
|
Channel string `json:"channel"`
|
|
|
|
Enabled bool `json:"enabled"`
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type Icons struct {
|
2022-12-04 08:49:17 -08:00
|
|
|
ID uint `json:"ID"`
|
2022-04-02 12:05:32 -07:00
|
|
|
CreatedAt time.Time `json:"CreatedAt"`
|
|
|
|
UpdatedAt time.Time `json:"UpdatedAt"`
|
|
|
|
DeletedAt time.Time `json:"DeletedAt"`
|
|
|
|
|
2022-12-04 08:49:17 -08:00
|
|
|
FileName string `json:"fileName"`
|
|
|
|
Site string `json:"site"`
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type Settings struct {
|
2022-12-04 08:49:17 -08:00
|
|
|
ID uint `json:"ID"`
|
2022-04-02 12:05:32 -07:00
|
|
|
CreatedAt time.Time `json:"CreatedAt"`
|
|
|
|
UpdatedAt time.Time `json:"UpdatedAt"`
|
|
|
|
DeletedAt time.Time `json:"DeletedAt"`
|
|
|
|
|
2022-12-04 08:49:17 -08:00
|
|
|
Key string `json:"key"`
|
|
|
|
Value string `json:"value"`
|
|
|
|
Options string `json:"options"`
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type Sources struct {
|
2022-12-04 08:49:17 -08:00
|
|
|
ID uint `json:"ID"`
|
|
|
|
Site string `json:"site"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Source string `json:"source"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
Value string `json:"value"`
|
|
|
|
Enabled bool `json:"enabled"`
|
|
|
|
Url string `json:"url"`
|
|
|
|
Tags string `json:"tags"`
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type SourceLinks struct {
|
2022-12-04 08:49:17 -08:00
|
|
|
ID uint `json:"ID"`
|
2022-04-02 12:05:32 -07:00
|
|
|
CreatedAt time.Time `json:"CreatedAt"`
|
|
|
|
UpdatedAt time.Time `json:"UpdatedAt"`
|
|
|
|
DeletedAt time.Time `json:"DeletedAt"`
|
2022-12-04 08:49:17 -08:00
|
|
|
|
|
|
|
SourceID uint `json:"sourceId"`
|
|
|
|
SourceType string `json:"sourceType"`
|
|
|
|
SourceName string `json:"sourceName"`
|
|
|
|
DiscordID uint `json:"discordId"`
|
|
|
|
DiscordName string `json:"discordName"`
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|