Add some more tests to the plugin API (#26057)

Automatic Merge
Этот коммит содержится в:
Harrison Healey
2024-02-12 06:12:05 -05:00
коммит произвёл GitHub
родитель 90b21cad33
Коммит 0a1acfeb80
2 изменённых файлов: 200 добавлений и 70 удалений

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

@@ -166,7 +166,8 @@ type API interface {
// Minimum server version: 5.6
GetUsersInTeam(teamID string, page int, perPage int) ([]*model.User, *model.AppError)
// GetPreferenceForUser gets a single preference for a user.
// GetPreferenceForUser gets a single preference for a user. An error is returned if the user has no preference
// set with the given category and name, an error is returned.
//
// @tag User
// @tag Preference
@@ -463,7 +464,8 @@ type API interface {
// Minimum server version: 5.2
GetChannelByNameForTeamName(teamName, channelName string, includeDeleted bool) (*model.Channel, *model.AppError)
// GetChannelsForTeamForUser gets a list of channels for given user ID in given team ID.
// GetChannelsForTeamForUser gets a list of channels for given user ID in given team ID, including DMs.
// If an empty string is passed as the team ID, the user's channels on all teams and their DMs will be returned.
//
// @tag Channel
// @tag Team