MM-18816 Adding ability to add users as another user to the plugin API. (#12562)
* Adding ability to add users as anouther user to the plugin API. * Documentation feedback.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d7ee3553fa
Коммит
e62471dff6
@@ -66,6 +66,31 @@ func (_m *API) AddReaction(reaction *model.Reaction) (*model.Reaction, *model.Ap
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// AddUserToChannel provides a mock function with given fields: channelId, userId, asUserId
|
||||
func (_m *API) AddUserToChannel(channelId string, userId string, asUserId string) (*model.ChannelMember, *model.AppError) {
|
||||
ret := _m.Called(channelId, userId, asUserId)
|
||||
|
||||
var r0 *model.ChannelMember
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) *model.ChannelMember); ok {
|
||||
r0 = rf(channelId, userId, asUserId)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.ChannelMember)
|
||||
}
|
||||
}
|
||||
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(1).(func(string, string, string) *model.AppError); ok {
|
||||
r1 = rf(channelId, userId, asUserId)
|
||||
} else {
|
||||
if ret.Get(1) != nil {
|
||||
r1 = ret.Get(1).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// CopyFileInfos provides a mock function with given fields: userId, fileIds
|
||||
func (_m *API) CopyFileInfos(userId string, fileIds []string) ([]string, *model.AppError) {
|
||||
ret := _m.Called(userId, fileIds)
|
||||
|
||||
Ссылка в новой задаче
Block a user