Merge branch 'master' into master

This commit is contained in:
玖亖伍
2022-05-09 18:19:08 +08:00
committed by GitHub
17 changed files with 366 additions and 88 deletions

View File

@@ -240,6 +240,17 @@ func (m *BookResult) ToBookResult(book Book) *BookResult {
m.ItemName = item.ItemName
}
}
if m.CommentStatus == "closed" {
m.IsDisplayComment = false
} else if m.CommentStatus == "open" {
m.IsDisplayComment = true
} else if m.CommentStatus == "registered_only" {
// todo
} else if m.CommentStatus == "group_only" {
// todo
} else {
m.IsDisplayComment = false;
}
return m
}