get other accounts works
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user