实现文档编辑

This commit is contained in:
Minho
2017-04-27 18:19:37 +08:00
parent 8c85227c30
commit ca1b1a4b83
18 changed files with 1095 additions and 173 deletions

View File

@@ -84,7 +84,7 @@ func (m *Comment) Insert() error {
document := NewDocument()
//如果评论的文档不存在
if err := document.Find(m.DocumentId); err != nil {
if _,err := document.Find(m.DocumentId); err != nil {
return err
}
book ,err := NewBook().Find(document.BookId);