🎨 数据历史文档中支持操作类型过滤 https://github.com/siyuan-note/siyuan/issues/5754

This commit is contained in:
Liang Ding 2022-08-29 21:37:56 +08:00
parent 3e988fa9d0
commit bd0ec0dcf2
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 10 additions and 4 deletions

View file

@ -40,7 +40,11 @@ func searchHistory(c *gin.Context) {
if nil != arg["page"] {
page = int(arg["page"].(float64))
}
histories := model.FullTextSearchHistory(query, page)
op := "all"
if nil != arg["op"] {
op = arg["op"].(string)
}
histories := model.FullTextSearchHistory(query, op, page)
ret.Data = map[string]interface{}{
"histories": histories,
}