2024-04-23 07:15:38 -07:00
|
|
|
package domain
|
2022-04-02 12:05:32 -07:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2024-04-26 16:02:59 -07:00
|
|
|
type ArticleEntity struct {
|
|
|
|
ID int64
|
|
|
|
CreatedAt time.Time
|
2024-04-27 07:44:20 -07:00
|
|
|
UpdatedAt time.Time
|
2024-04-26 16:02:59 -07:00
|
|
|
DeletedAt time.Time
|
|
|
|
SourceID int64
|
|
|
|
Tags string
|
|
|
|
Title string
|
|
|
|
Url string
|
|
|
|
PubDate time.Time
|
2024-04-27 07:44:20 -07:00
|
|
|
IsVideo bool
|
2024-04-26 16:02:59 -07:00
|
|
|
Thumbnail string
|
|
|
|
Description string
|
|
|
|
AuthorName string
|
|
|
|
AuthorImageUrl string
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|
|
|
|
|
2024-04-26 16:02:59 -07:00
|
|
|
type DiscordQueueEntity struct {
|
2024-04-27 07:44:20 -07:00
|
|
|
ID int64
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
DeletedAt time.Time
|
|
|
|
ArticleId int64
|
|
|
|
SourceId int64
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|
|
|
|
|
2024-04-26 16:02:59 -07:00
|
|
|
type DiscordWebHookEntity struct {
|
|
|
|
ID int64
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
DeletedAt time.Time
|
2024-04-27 13:11:03 -07:00
|
|
|
//Name string
|
|
|
|
//Key string
|
2024-04-26 16:02:59 -07:00
|
|
|
Url string
|
|
|
|
Server string
|
|
|
|
Channel string
|
|
|
|
Enabled bool
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|
|
|
|
|
2024-04-26 16:02:59 -07:00
|
|
|
type IconEntity struct {
|
|
|
|
ID int64
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
DeletedAt time.Time
|
|
|
|
FileName string
|
|
|
|
Site string
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|
|
|
|
|
2024-04-26 16:02:59 -07:00
|
|
|
type SettingEntity struct {
|
|
|
|
ID int64
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
DeletedAt time.Time
|
|
|
|
Key string
|
|
|
|
Value string
|
|
|
|
Options string
|
|
|
|
}
|
2022-04-02 12:05:32 -07:00
|
|
|
|
2024-04-26 16:02:59 -07:00
|
|
|
type SourceEntity struct {
|
|
|
|
ID int64
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
DeletedAt time.Time
|
|
|
|
Site string
|
|
|
|
Name string
|
|
|
|
Source string
|
|
|
|
Type string
|
|
|
|
Value string
|
|
|
|
Enabled bool
|
|
|
|
Url string
|
|
|
|
Tags string
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|
|
|
|
|
2024-04-26 16:02:59 -07:00
|
|
|
type SubscriptionEntity struct {
|
|
|
|
ID int64
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
DeletedAt time.Time
|
|
|
|
SourceID int64
|
|
|
|
SourceType string
|
|
|
|
SourceName string
|
|
|
|
DiscordID int64
|
|
|
|
DiscordName string
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|
|
|
|
|
2024-04-26 16:02:59 -07:00
|
|
|
type UserEntity struct {
|
|
|
|
ID int64
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
DeletedAt time.Time
|
|
|
|
Username string
|
|
|
|
Hash string
|
|
|
|
Scopes string
|
|
|
|
}
|
2022-12-04 08:49:17 -08:00
|
|
|
|
2024-04-26 16:02:59 -07:00
|
|
|
type RefreshTokenEntity struct {
|
|
|
|
ID int64
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
DeletedAt time.Time
|
|
|
|
Username string
|
|
|
|
Token string
|
2022-04-02 12:05:32 -07:00
|
|
|
}
|