[MM-28985] Remove pointers to slice (part 1) (#18034)
* Remove pointers to slice (part 1) * Remove use of pointers to slice from model package (#18045) * Fix after merge
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
132f114793
Коммит
04b27ce93c
@@ -790,15 +790,15 @@ func (_m *API) GetChannelMember(channelId string, userID string) (*model.Channel
|
||||
}
|
||||
|
||||
// GetChannelMembers provides a mock function with given fields: channelId, page, perPage
|
||||
func (_m *API) GetChannelMembers(channelId string, page int, perPage int) (*model.ChannelMembers, *model.AppError) {
|
||||
func (_m *API) GetChannelMembers(channelId string, page int, perPage int) (model.ChannelMembers, *model.AppError) {
|
||||
ret := _m.Called(channelId, page, perPage)
|
||||
|
||||
var r0 *model.ChannelMembers
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) *model.ChannelMembers); ok {
|
||||
var r0 model.ChannelMembers
|
||||
if rf, ok := ret.Get(0).(func(string, int, int) model.ChannelMembers); ok {
|
||||
r0 = rf(channelId, page, perPage)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.ChannelMembers)
|
||||
r0 = ret.Get(0).(model.ChannelMembers)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -815,15 +815,15 @@ func (_m *API) GetChannelMembers(channelId string, page int, perPage int) (*mode
|
||||
}
|
||||
|
||||
// GetChannelMembersByIds provides a mock function with given fields: channelId, userIds
|
||||
func (_m *API) GetChannelMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError) {
|
||||
func (_m *API) GetChannelMembersByIds(channelId string, userIds []string) (model.ChannelMembers, *model.AppError) {
|
||||
ret := _m.Called(channelId, userIds)
|
||||
|
||||
var r0 *model.ChannelMembers
|
||||
if rf, ok := ret.Get(0).(func(string, []string) *model.ChannelMembers); ok {
|
||||
var r0 model.ChannelMembers
|
||||
if rf, ok := ret.Get(0).(func(string, []string) model.ChannelMembers); ok {
|
||||
r0 = rf(channelId, userIds)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.ChannelMembers)
|
||||
r0 = ret.Get(0).(model.ChannelMembers)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user