mirror of
https://github.com/grafana/grafana.git
synced 2024-12-27 09:21:35 -06:00
4dd7b7a82d
* Chore: Remove more unused Go code Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
49 lines
795 B
Go
49 lines
795 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Preferences struct {
|
|
Id int64
|
|
OrgId int64
|
|
UserId int64
|
|
TeamId int64
|
|
Version int
|
|
HomeDashboardId int64
|
|
Timezone string
|
|
Theme string
|
|
Created time.Time
|
|
Updated time.Time
|
|
}
|
|
|
|
// ---------------------
|
|
// QUERIES
|
|
|
|
type GetPreferencesQuery struct {
|
|
Id int64
|
|
OrgId int64
|
|
UserId int64
|
|
TeamId int64
|
|
|
|
Result *Preferences
|
|
}
|
|
|
|
type GetPreferencesWithDefaultsQuery struct {
|
|
User *SignedInUser
|
|
|
|
Result *Preferences
|
|
}
|
|
|
|
// ---------------------
|
|
// COMMANDS
|
|
type SavePreferencesCommand struct {
|
|
UserId int64
|
|
OrgId int64
|
|
TeamId int64
|
|
|
|
HomeDashboardId int64 `json:"homeDashboardId"`
|
|
Timezone string `json:"timezone"`
|
|
Theme string `json:"theme"`
|
|
}
|