mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* Excludes remote channels from channel search This is done through a new body parameter in the SearchAllChannels endpoint that allows to search for local only channels, which are either channels that are shared but marked as homed locally, or channels that are not shared at all. * fix lint * Fix tests --------- Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
25 lines
1.1 KiB
Go
25 lines
1.1 KiB
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package model
|
|
|
|
const ChannelSearchDefaultLimit = 50
|
|
|
|
type ChannelSearch struct {
|
|
Term string `json:"term"`
|
|
ExcludeDefaultChannels bool `json:"exclude_default_channels"`
|
|
NotAssociatedToGroup string `json:"not_associated_to_group"`
|
|
TeamIds []string `json:"team_ids"`
|
|
GroupConstrained bool `json:"group_constrained"`
|
|
ExcludeGroupConstrained bool `json:"exclude_group_constrained"`
|
|
ExcludePolicyConstrained bool `json:"exclude_policy_constrained"`
|
|
Public bool `json:"public"`
|
|
Private bool `json:"private"`
|
|
IncludeDeleted bool `json:"include_deleted"`
|
|
IncludeSearchById bool `json:"include_search_by_id"`
|
|
ExcludeRemote bool `json:"exclude_remote"`
|
|
Deleted bool `json:"deleted"`
|
|
Page *int `json:"page,omitempty"`
|
|
PerPage *int `json:"per_page,omitempty"`
|
|
}
|