Add GetChannelMembers method to plugin API (#9525)

Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
Этот коммит содержится в:
Akash Srivastava
2018-10-04 01:37:54 +05:30
коммит произвёл Joram Wilander
родитель 8c03e584c1
Коммит 8de9a61f7f
4 изменённых файлов: 63 добавлений и 0 удалений

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

@@ -262,6 +262,10 @@ func (api *PluginAPI) GetChannelMember(channelId, userId string) (*model.Channel
return api.app.GetChannelMember(channelId, userId)
}
func (api *PluginAPI) GetChannelMembers(channelId string, page, perPage int) (*model.ChannelMembers, *model.AppError) {
return api.app.GetChannelMembersPage(channelId, page, perPage)
}
func (api *PluginAPI) UpdateChannelMemberRoles(channelId, userId, newRoles string) (*model.ChannelMember, *model.AppError) {
return api.app.UpdateChannelMemberRoles(channelId, userId, newRoles)
}