实现项目内搜索功能

This commit is contained in:
Minho
2017-05-13 17:41:17 +08:00
parent d02768aad0
commit f7725c0a1f
4 changed files with 75 additions and 9 deletions

View File

@@ -832,6 +832,12 @@ func (c *DocumentController) QrCode() {
}
}
func (c *DocumentController) Search() {
c.Prepare()
c.JsonResult(0,"ok")
}
//递归生成文档序列数组.
func RecursiveFun(parent_id int, prefix, dpath string, c *DocumentController, book *models.BookResult, docs []*models.Document, paths *list.List) {
for _, item := range docs {