1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

add/remove group membership

This commit is contained in:
sauls8t 2018-03-01 19:14:27 +00:00
parent 0b5ed8fd9e
commit ed11c0ad11
17 changed files with 287 additions and 87 deletions

View file

@ -31,3 +31,13 @@ type Member struct {
Firstname string `json:"firstname"` //read-only info
Lastname string `json:"lastname"` //read-only info
}
// Record details user membership of a user group.
type Record struct {
ID uint64 `json:"id"`
OrgID string `json:"orgId"`
RoleID string `json:"roleId"`
UserID string `json:"userId"`
Name string `json:"name"`
Purpose string `json:"purpose"`
}

View file

@ -16,6 +16,7 @@ import (
"github.com/documize/community/model"
"github.com/documize/community/model/account"
"github.com/documize/community/model/group"
)
// User defines a login.
@ -34,6 +35,7 @@ type User struct {
Salt string `json:"-"`
Reset string `json:"-"`
Accounts []account.Account `json:"accounts"`
Groups []group.Record `json:"groups"`
}
// ProtectSecrets blanks sensitive data.