Adding SetFileSearchableContent plugin API endpoint (#24355)
* Adding SetFileSearchableContent plugin API endpoint * Fixing CI problems * Fixing CI problems * Fixing CI problems * Fixing CI problems * Fixing CI problems * Exposing it to the public API * Fix CI problems * Adding SetSearchableContent to the pluginapi File struct
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
fd74208af1
Коммит
c9d49536f8
@@ -46,6 +46,14 @@ func (f *FileService) GetInfo(id string) (*model.FileInfo, error) {
|
||||
return info, normalizeAppErr(appErr)
|
||||
}
|
||||
|
||||
// SetSearchableContent update the File Info searchable text for full text search
|
||||
//
|
||||
// Minimum server version: 9.1
|
||||
func (f *FileService) SetSearchableContent(id string, content string) error {
|
||||
appErr := f.api.SetFileSearchableContent(id, content)
|
||||
return normalizeAppErr(appErr)
|
||||
}
|
||||
|
||||
// GetLink gets the public link of a file by id.
|
||||
//
|
||||
// Minimum server version: 5.6
|
||||
|
||||
Ссылка в новой задаче
Block a user