作者 yangfu

feat: 附件

... ... @@ -99,6 +99,9 @@ func (bk *ArticleBackup) CheckChangeField(oldBackup *ArticleBackup) bool {
if !reflect.DeepEqual(oldBackup.WhoReview, bk.WhoReview) {
bk.ChangeField = append(bk.ChangeField, "WhoReview")
}
if !reflect.DeepEqual(oldBackup.Attachments, bk.Attachments) {
bk.ChangeField = append(bk.ChangeField, "Attachments")
}
}
//比较段落内容+图片+视频 是否发生变更
{
... ... @@ -181,6 +184,7 @@ func (bk *ArticleBackup) MakeBackup(operator UserSimple, article *Article, secti
Section: sectionBackup,
Images: make([]Image, len(article.Images)),
Videos: make([]Video, len(article.Videos)),
Attachments: article.Attachments,
Action: action,
TargetUser: article.TargetUser,
WhoRead: article.WhoRead,
... ...