Added savePreferencesAPI
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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:"-"`
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user