mirror of https://github.com/grafana/grafana.git
29 lines
473 B
Go
29 lines
473 B
Go
|
package models
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
)
|
||
|
|
||
|
// Typed errors
|
||
|
var (
|
||
|
ErrPreferenceNotFound = errors.New("Preference not found")
|
||
|
)
|
||
|
|
||
|
type Preference struct {
|
||
|
Id int64
|
||
|
PrefId int64
|
||
|
PrefType string
|
||
|
PrefData map[string]interface{}
|
||
|
}
|
||
|
|
||
|
// ---------------------
|
||
|
// COMMANDS
|
||
|
|
||
|
type SavePreferenceCommand struct {
|
||
|
|
||
|
PrefData map[string]interface{} `json:"prefData"`
|
||
|
PrefId int64 `json:"-"`
|
||
|
PrefType string `json:"-"`
|
||
|
|
||
|
}
|