restructuring crawler architecture

This commit is contained in:
2025-01-20 08:58:49 +01:00
parent 9104bc7716
commit 47299d6ef3
13 changed files with 408 additions and 330 deletions

View File

@@ -16,6 +16,18 @@ type Article struct {
AiSummary string
}
func (a *Article) Clone() *Article {
return &Article{
Id: a.Id,
SourceUrl: a.SourceUrl,
PublishDate: a.PublishDate,
FetchDate: a.FetchDate,
Title: a.Title,
Content: a.Content,
AiSummary: a.AiSummary,
}
}
// TODO docstring
type ArticleViewModel struct {
Id int