Added GETEmojilist plugin api (#9750)
* Add GetEmojiList plugin api * Fixed bug in getemojilist causing build test failure * Fix linting error * Add requested changes * Fix all conflicts
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
789b2f72dd
Коммит
f6b1ccbcb1
@@ -656,6 +656,31 @@ func (_m *API) GetEmojiImage(emojiId string) ([]byte, string, *model.AppError) {
|
||||
return r0, r1, r2
|
||||
}
|
||||
|
||||
// GetEmojiList provides a mock function with given fields: sortBy, page, perPage
|
||||
func (_m *API) GetEmojiList(sortBy string, page int, perPage int) ([]*model.Emoji, *model.AppError) {
|
||||
ret := _m.Called(sortBy, page, perPage)
|
||||
|
||||
var r0 []*model.Emoji
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) []*model.Emoji); ok {
|
||||
r0 = rf(sortBy, page, perPage)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.Emoji)
|
||||
}
|
||||
}
|
||||
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(1).(func(string, int, int) *model.AppError); ok {
|
||||
r1 = rf(sortBy, page, perPage)
|
||||
} else {
|
||||
if ret.Get(1) != nil {
|
||||
r1 = ret.Get(1).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetFileInfo provides a mock function with given fields: fileId
|
||||
func (_m *API) GetFileInfo(fileId string) (*model.FileInfo, *model.AppError) {
|
||||
ret := _m.Called(fileId)
|
||||
|
||||
Ссылка в новой задаче
Block a user