Implemented GetUserPreferences API

This commit is contained in:
utkarshcmu
2016-03-06 11:42:15 -08:00
parent 660d3fa1e9
commit 8f42bec270
4 changed files with 53 additions and 1 deletions
+19
View File
@@ -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"`
}