MCPcopy Index your code
hub / github.com/TruthHun/DocHub / DelCommentByDocId

Method DelCommentByDocId

models/CommentModel.go:56–61  ·  view source on GitHub ↗

根据文档ID删除文档评论 @param ids 文档id @return err 错误,nil表示删除成功

(ids ...interface{})

Source from the content-addressed store, hash-verified

54//@param ids 文档id
55//@return err 错误,nil表示删除成功
56func (this *DocumentComment) DelCommentByDocId(ids ...interface{}) (err error) {
57 if len(ids) > 0 {
58 _, err = orm.NewOrm().QueryTable(GetTableDocumentComment()).Filter("Did__in", ids...).Delete()
59 }
60 return err
61}

Callers 1

DelRowsMethod · 0.80

Calls 2

GetTableDocumentCommentFunction · 0.85
DeleteMethod · 0.80

Tested by

no test coverage detected