mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* 7494 added the role to the user search filter * 7494 changed the getUser function to accept the options * added the role filter for the getAllProfiles method * 7494 added the Inactive filter for AllProfiles * 7494 refactored the where clause generation * 7494 added the roles and inactive filters for inTeam Query * 7494 fixed the review comments
28 lines
612 B
Go
28 lines
612 B
Go
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
package model
|
|
|
|
type UserGetOptions struct {
|
|
// Filters the users in the team
|
|
InTeamId string
|
|
// Filters the users not in the team
|
|
NotInTeamId string
|
|
// Filters the users in the channel
|
|
InChannelId string
|
|
// Filters the users not in the channel
|
|
NotInChannelId string
|
|
// Filters the users without a team
|
|
WithoutTeam bool
|
|
// Filters the inactive users
|
|
Inactive bool
|
|
// Filters for the given role
|
|
Role string
|
|
// Sorting option
|
|
Sort string
|
|
// Page
|
|
Page int
|
|
// Page size
|
|
PerPage int
|
|
}
|