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
Этот коммит содержится в:
Jesús Espino
2023-08-30 22:43:40 +02:00
коммит произвёл GitHub
родитель fd74208af1
Коммит c9d49536f8
12 изменённых файлов: 154 добавлений и 10 удалений

Просмотреть файл

@@ -852,6 +852,13 @@ func (api *apiTimerLayer) GetFileInfo(fileId string) (*model.FileInfo, *model.Ap
return _returnsA, _returnsB
}
func (api *apiTimerLayer) SetFileSearchableContent(fileID string, content string) *model.AppError {
startTime := timePkg.Now()
_returnsA := api.apiImpl.SetFileSearchableContent(fileID, content)
api.recordTime(startTime, "SetFileSearchableContent", _returnsA == nil)
return _returnsA
}
func (api *apiTimerLayer) GetFileInfos(page, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError) {
startTime := timePkg.Now()
_returnsA, _returnsB := api.apiImpl.GetFileInfos(page, perPage, opt)