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 удалений

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

@@ -140,6 +140,9 @@ type API interface {
// GetChannelMember gets a channel membership for a user.
GetChannelMember(channelId, userId string) (*model.ChannelMember, *model.AppError)
// GetChannelMembers gets a channel membership for all users.
GetChannelMembers(channelId string, page, perPage int) (*model.ChannelMembers, *model.AppError)
// UpdateChannelMemberRoles updates a user's roles for a channel.
UpdateChannelMemberRoles(channelId, userId, newRoles string) (*model.ChannelMember, *model.AppError)