[MM-56206] Allow for proper paging and sorting (#25726)
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
485ae6ae4e
Коммит
5c061a6f75
@@ -23,13 +23,15 @@ var (
|
||||
)
|
||||
|
||||
type ReportingBaseOptions struct {
|
||||
SortDesc bool
|
||||
PageSize int
|
||||
SortColumn string
|
||||
LastSortColumnValue string
|
||||
DateRange string
|
||||
StartAt int64
|
||||
EndAt int64
|
||||
SortDesc bool
|
||||
Direction string // Accepts only "up" or "down"
|
||||
PageSize int
|
||||
SortColumn string
|
||||
FromColumnValue string
|
||||
FromId string
|
||||
DateRange string
|
||||
StartAt int64
|
||||
EndAt int64
|
||||
}
|
||||
|
||||
func (options *ReportingBaseOptions) PopulateDateRange(now time.Time) {
|
||||
@@ -75,7 +77,6 @@ type UserReport struct {
|
||||
|
||||
type UserReportOptions struct {
|
||||
ReportingBaseOptions
|
||||
LastUserId string
|
||||
Role string
|
||||
Team string
|
||||
HasNoTeam bool
|
||||
|
||||
Ссылка в новой задаче
Block a user