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

list group members & non-members

This commit is contained in:
sauls8t 2018-02-28 14:55:36 +00:00
parent 19b4a3de49
commit 0680a72ee2
15 changed files with 360 additions and 60 deletions

View file

@ -19,12 +19,15 @@ type Group struct {
OrgID string `json:"orgId"`
Name string `json:"name"`
Purpose string `json:"purpose"`
Members int `json:"members"`
Members int `json:"members"` // read-only info
}
// Member defines user membership of a user group.
type Member struct {
OrgID string `json:"orgId"`
RoleID string `json:"roleId"`
UserID string `json:"userId"`
ID uint64 `json:"id"`
OrgID string `json:"orgId"`
RoleID string `json:"roleId"`
UserID string `json:"userId"`
Firstname string `json:"firstname"` //read-only info
Lastname string `json:"lastname"` //read-only info
}