Made API handling better, removed unused components

This commit is contained in:
utkarshcmu
2016-03-06 12:32:22 -08:00
parent 8f42bec270
commit 9c8d508247
9 changed files with 35 additions and 80 deletions

View File

@@ -6,7 +6,7 @@ import (
// Typed errors
var (
ErrPreferenceNotFound = errors.New("Preference not found")
ErrPreferencesNotFound = errors.New("Preferences not found")
)
type Preferences struct {
@@ -23,7 +23,7 @@ type GetPreferencesQuery struct {
PrefId int64
PrefType string
Result PreferencesDTO
Result *Preferences
}
// ---------------------