macaron transition progress

This commit is contained in:
Torkel Ödegaard
2014-10-05 21:13:07 +02:00
parent 201e1d3e6d
commit 222319d924
11 changed files with 403 additions and 38 deletions
+13
View File
@@ -5,6 +5,19 @@ import (
"time"
)
var (
CreateAccount func(acccount *Account) error
UpdateAccount func(acccount *Account) error
GetAccountByLogin func(emailOrName string) (*Account, error)
GetAccount func(accountId int) (*Account, error)
GetOtherAccountsFor func(accountId int) ([]*OtherAccount, error)
)
// Typed errors
var (
ErrAccountNotFound = errors.New("Account not found")
)
type CollaboratorLink struct {
AccountId int
Role string