Implemented GetUserPreferences API
This commit is contained in:
@@ -16,6 +16,16 @@ type Preferences struct {
|
||||
PrefData map[string]interface{}
|
||||
}
|
||||
|
||||
// ---------------------
|
||||
// QUERIES
|
||||
|
||||
type GetPreferencesQuery struct {
|
||||
PrefId int64
|
||||
PrefType string
|
||||
|
||||
Result PreferencesDTO
|
||||
}
|
||||
|
||||
// ---------------------
|
||||
// COMMANDS
|
||||
|
||||
@@ -24,3 +34,12 @@ type SavePreferencesCommand struct {
|
||||
PrefId int64 `json:"-"`
|
||||
PrefType string `json:"-"`
|
||||
}
|
||||
|
||||
// ----------------------
|
||||
// DTO & Projections
|
||||
|
||||
type PreferencesDTO struct {
|
||||
PrefId int64 `json:"prefId"`
|
||||
PrefType string `json:"prefType"`
|
||||
PrefData map[string]interface{} `json:"prefData"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user