get other accounts works

This commit is contained in:
Torkel Ödegaard
2014-11-24 08:04:41 +01:00
parent f04932aa67
commit fcdcd63dc7
7 changed files with 55 additions and 7 deletions
+3 -3
View File
@@ -29,9 +29,9 @@ type CollaboratorLink struct {
}
type OtherAccount struct {
Id int `gorethink:"id"`
Name string
Role string
Id int64
Email string
Role string
}
type Account struct {
+2 -2
View File
@@ -27,11 +27,11 @@ type CollaboratorInfo struct {
Email string
}
func NewCollaborator(accountId int64, forAccountId int64) *Collaborator {
func NewCollaborator(accountId int64, forAccountId int64, role RoleType) *Collaborator {
return &Collaborator{
AccountId: accountId,
ForAccountId: forAccountId,
Role: ROLE_READ,
Role: role,
Created: time.Now(),
Updated: time.Now(),
}