[GH-7494] Added the role to the user search filter (#9976)
* 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
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
09a519799f
Коммит
bbee234af0
27
model/user_get.go
Обычный файл
27
model/user_get.go
Обычный файл
@@ -0,0 +1,27 @@
|
||||
// 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
|
||||
}
|
||||
Ссылка в новой задаче
Block a user