Use id to load budgets

This commit is contained in:
2016-12-27 00:27:52 +01:00
parent 72fbec1063
commit f36fe1b1c0
3 changed files with 6 additions and 2 deletions

View File

@@ -20,5 +20,5 @@ type UserBudget struct {
// BudgetService provides Methods for CRUD of Budgets
type BudgetService interface {
Budget(id string) (Budget, error)
BudgetsForUser(user User) ([]Budget, error)
BudgetsForUser(id string) ([]Budget, error)
}