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.
Этот коммит содержится в:
Christopher Speller
2019-10-17 16:11:26 -07:00
коммит произвёл GitHub
родитель d7ee3553fa
Коммит e62471dff6
5 изменённых файлов: 87 добавлений и 1 удалений

Просмотреть файл

@@ -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)