restructuring crawler architecture
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user