fix: mysql FULLTEXT search (#2840)

This commit is contained in:
BoYanZh
2022-12-30 14:20:04 +08:00
committed by GitHub
parent f777a2fab4
commit 143e4cd077
2 changed files with 5 additions and 11 deletions

View File

@ -18,13 +18,6 @@ type SearchReq struct {
PageReq
}
type SearchNodeMySQL struct {
Parent string `json:"parent" gorm:"index"`
Name string `json:"name" gorm:"index:,class:FULLTEXT"`
IsDir bool `json:"is_dir"`
Size int64 `json:"size"`
}
type SearchNode struct {
Parent string `json:"parent" gorm:"index"`
Name string `json:"name"`