mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 04:52:10 +08:00

* locale -> regionalFormat, mirroring #102233 * set up regionalFormat to replace locale entirely * replace locale with regionalFormat * update reportInteraction arguments
44 lines
1.8 KiB
Go
44 lines
1.8 KiB
Go
package dtos
|
|
|
|
import (
|
|
pref "github.com/grafana/grafana/pkg/services/preference"
|
|
)
|
|
|
|
// swagger:model
|
|
type UpdatePrefsCmd struct {
|
|
// Enum: light,dark,system
|
|
Theme string `json:"theme"`
|
|
// The numerical :id of a favorited dashboard
|
|
// Default:0
|
|
// Deprecated: Use HomeDashboardUID instead
|
|
HomeDashboardID int64 `json:"homeDashboardId"`
|
|
HomeDashboardUID *string `json:"homeDashboardUID,omitempty"`
|
|
// Enum: utc,browser
|
|
Timezone string `json:"timezone"`
|
|
WeekStart string `json:"weekStart"`
|
|
QueryHistory *pref.QueryHistoryPreference `json:"queryHistory,omitempty"`
|
|
Language string `json:"language"`
|
|
RegionalFormat string `json:"regionalFormat"`
|
|
Cookies []pref.CookieType `json:"cookies,omitempty"`
|
|
Navbar *pref.NavbarPreference `json:"navbar,omitempty"`
|
|
}
|
|
|
|
// swagger:model
|
|
type PatchPrefsCmd struct {
|
|
// Enum: light,dark
|
|
Theme *string `json:"theme,omitempty"`
|
|
// The numerical :id of a favorited dashboard
|
|
// Default:0
|
|
// Deprecated: Use HomeDashboardUID instead
|
|
HomeDashboardID *int64 `json:"homeDashboardId,omitempty"`
|
|
// Enum: utc,browser
|
|
Timezone *string `json:"timezone,omitempty"`
|
|
WeekStart *string `json:"weekStart,omitempty"`
|
|
Language *string `json:"language,omitempty"`
|
|
RegionalFormat *string `json:"regionalFormat,omitempty"`
|
|
QueryHistory *pref.QueryHistoryPreference `json:"queryHistory,omitempty"`
|
|
HomeDashboardUID *string `json:"homeDashboardUID,omitempty"`
|
|
Cookies []pref.CookieType `json:"cookies,omitempty"`
|
|
Navbar *pref.NavbarPreference `json:"navbar,omitempty"`
|
|
}
|