Implemented savePreferences API
This commit is contained in:
@@ -9,20 +9,18 @@ var (
|
||||
ErrPreferenceNotFound = errors.New("Preference not found")
|
||||
)
|
||||
|
||||
type Preference struct {
|
||||
Id int64
|
||||
PrefId int64
|
||||
PrefType string
|
||||
PrefData map[string]interface{}
|
||||
type Preferences struct {
|
||||
Id int64
|
||||
PrefId int64
|
||||
PrefType string
|
||||
PrefData map[string]interface{}
|
||||
}
|
||||
|
||||
// ---------------------
|
||||
// COMMANDS
|
||||
|
||||
type SavePreferenceCommand struct {
|
||||
|
||||
PrefData map[string]interface{} `json:"prefData"`
|
||||
PrefId int64 `json:"-"`
|
||||
type SavePreferencesCommand struct {
|
||||
PrefData map[string]interface{} `json:"prefData" binding:"Required"`
|
||||
PrefId int64 `json:"-"`
|
||||
PrefType string `json:"-"`
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user