🎨 保存命名查询去掉多余的字段

This commit is contained in:
Liang Ding 2022-12-31 15:59:33 +08:00
parent 819ce3dcb2
commit 7688733364
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -157,19 +157,16 @@ func getRecentDocs() (ret []*RecentDoc, err error) {
}
type Criterion struct {
Name string `json:"name"`
Sort int `json:"sort"` // 0按块类型默认1按创建时间升序2按创建时间降序3按更新时间升序4按更新时间降序5按内容顺序仅在按文档分组时
Group int `json:"group"` // 0不分组1按文档分组
Layout int `json:"layout"` // 0上下1左右
HasReplace bool `json:"hasReplace"` // 是否有替换
Method int `json:"method"` // 0文本1查询语法2SQL3正则表达式
HPath string `json:"hPath"`
IDPath []string `json:"idPath"`
K string `json:"k"` // 搜索关键字
R string `json:"r"` // 替换关键字
ReplaceList []string `json:"replaceList"` // 替换候选列表
List []string `json:"list"` // 搜索候选列表
Types *CriterionTypes `json:"types"` // 类型过滤选项
Name string `json:"name"`
Sort int `json:"sort"` // 0按块类型默认1按创建时间升序2按创建时间降序3按更新时间升序4按更新时间降序5按内容顺序仅在按文档分组时
Group int `json:"group"` // 0不分组1按文档分组
HasReplace bool `json:"hasReplace"` // 是否有替换
Method int `json:"method"` // 0文本1查询语法2SQL3正则表达式
HPath string `json:"hPath"`
IDPath []string `json:"idPath"`
K string `json:"k"` // 搜索关键字
R string `json:"r"` // 替换关键字
Types *CriterionTypes `json:"types"` // 类型过滤选项
}
type CriterionTypes struct {