GH-9608: Add GetUsersInChannel to plugin API (#9643)
* add GetUsersInChannel to plugin api * compute offset value instead of page * Add version comment
Этот коммит содержится в:
коммит произвёл
Jesse Hallam
родитель
819ab451f1
Коммит
77f3da1eaf
@@ -1163,6 +1163,31 @@ func (_m *API) GetUsersInTeam(teamId string, page int, perPage int) ([]*model.Us
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetUsersInChannel provides a mock function with given fields: channelId, page, perPage
|
||||
func (_m *API) GetUsersInChannel(channelId string, page int, perPage int) ([]*model.User, *model.AppError) {
|
||||
ret := _m.Called(channelId, page, perPage)
|
||||
|
||||
var r0 []*model.User
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) []*model.User); ok {
|
||||
r0 = rf(channelId, page, perPage)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).([]*model.User)
|
||||
}
|
||||
}
|
||||
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(1).(func(string, int, int) *model.AppError); ok {
|
||||
r1 = rf(channelId, page, perPage)
|
||||
} else {
|
||||
if ret.Get(1) != nil {
|
||||
r1 = ret.Get(1).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// HasPermissionTo provides a mock function with given fields: userId, permission
|
||||
func (_m *API) HasPermissionTo(userId string, permission *model.Permission) bool {
|
||||
ret := _m.Called(userId, permission)
|
||||
|
||||
Ссылка в новой задаче
Block a user