mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 数据历史文档中支持操作类型过滤 https://github.com/siyuan-note/siyuan/issues/5754
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user