查询markdown内容或者content内容
(docId interface{})
| 86 | |
| 87 | //查询markdown内容或者content内容 |
| 88 | func (this *DocumentStore) GetById(docId interface{}) (ds DocumentStore, err error) { |
| 89 | err = orm.NewOrm().QueryTable(TableDocumentStore).Filter("document_id", docId).One(&ds) |
| 90 | if err != nil { |
| 91 | beego.Error(err) |
| 92 | } |
| 93 | return |
| 94 | } |