Added Preferences table to store user preferences

Этот коммит содержится в:
hmhealey
2015-10-01 10:56:07 -04:00
родитель 3229457de0
Коммит da66599fa3
5 изменённых файлов: 325 добавлений и 13 удалений

Просмотреть файл

@@ -37,6 +37,7 @@ type Store interface {
OAuth() OAuthStore
System() SystemStore
Webhook() WebhookStore
Preference() PreferenceStore
Close()
}
@@ -149,3 +150,9 @@ type WebhookStore interface {
GetIncomingByUser(userId string) StoreChannel
DeleteIncoming(webhookId string, time int64) StoreChannel
}
type PreferenceStore interface {
Save(preference *model.Preference) StoreChannel
Update(preference *model.Preference) StoreChannel
GetByName(userId string, category string, name string) StoreChannel
}