GH-9607: Add GetTeamsForUser to plugin API (#9644)
* add GetTeamsForUser to plugin api * Add version comment, fix comment typo
Этот коммит содержится в:
коммит произвёл
Jesse Hallam
родитель
7226759831
Коммит
e8c9ccaa7e
@@ -111,6 +111,10 @@ func (api *PluginAPI) UpdateTeam(team *model.Team) (*model.Team, *model.AppError
|
||||
return api.app.UpdateTeam(team)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) GetTeamsForUser(userId string) ([]*model.Team, *model.AppError) {
|
||||
return api.app.GetTeamsForUser(userId)
|
||||
}
|
||||
|
||||
func (api *PluginAPI) CreateTeamMember(teamId, userId string) (*model.TeamMember, *model.AppError) {
|
||||
return api.app.AddTeamMember(teamId, userId)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user