Add GetFile API in app and plugin (#9820)

Этот коммит содержится в:
Vaibhav Thakkar
2018-12-13 15:16:42 +05:30
коммит произвёл Hanzei
родитель 0541e765ad
Коммит dbd3801271
6 изменённых файлов: 103 добавлений и 0 удалений

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

@@ -336,6 +336,11 @@ type API interface {
// Minimum server version: 5.3
GetFileInfo(fileId string) (*model.FileInfo, *model.AppError)
// GetFile gets content of a file by it's ID
//
// Minimum Server version: 5.8
GetFile(fileId string) ([]byte, *model.AppError)
// GetFileLink gets the public link to a file by fileId.
//
// Minimum server version: 5.6