feat(search): paging and scope (close #4381 in #4930)

Co-authored-by: Andy Hsu <i@nn.ci>
This commit is contained in:
panici
2023-08-06 15:13:23 +08:00
committed by GitHub
parent 3686075a7f
commit 1d06a0019f
3 changed files with 24 additions and 3 deletions

View File

@ -15,6 +15,8 @@ type IndexProgress struct {
type SearchReq struct {
Parent string `json:"parent"`
Keywords string `json:"keywords"`
// 0 for all, 1 for dir, 2 for file
Scope int `json:"scope"`
PageReq
}