Add GetPostsAfter() to plugin API (#9650)
Этот коммит содержится в:
коммит произвёл
Carlos Tadeu Panato Junior
родитель
0d87486e99
Коммит
d346027691
@@ -697,6 +697,31 @@ func (_m *API) GetPostThread(postId string) (*model.PostList, *model.AppError) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetPostsAfter provides a mock function with given fields: channelId, postId, page, perPage
|
||||
func (_m *API) GetPostsAfter(channelId string, postId string, page int, perPage int) (*model.PostList, *model.AppError) {
|
||||
ret := _m.Called(channelId, postId, page, perPage)
|
||||
|
||||
var r0 *model.PostList
|
||||
if rf, ok := ret.Get(0).(func(string, string, int, int) *model.PostList); ok {
|
||||
r0 = rf(channelId, postId, page, perPage)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.PostList)
|
||||
}
|
||||
}
|
||||
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(1).(func(string, string, int, int) *model.AppError); ok {
|
||||
r1 = rf(channelId, postId, page, perPage)
|
||||
} else {
|
||||
if ret.Get(1) != nil {
|
||||
r1 = ret.Get(1).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetPostsBefore provides a mock function with given fields: channelId, postId, page, perPage
|
||||
func (_m *API) GetPostsBefore(channelId string, postId string, page int, perPage int) (*model.PostList, *model.AppError) {
|
||||
ret := _m.Called(channelId, postId, page, perPage)
|
||||
|
||||
Ссылка в новой задаче
Block a user