groups-management/storage/groups.go

17 lines
440 B
Go
Raw Normal View History

2022-08-11 15:21:32 +00:00
package storage
type Group struct {
ID string `json:"id" bson:"_id"`
Namespace string `json:"namespace"`
Members []string `json:"members"`
Data map[string]any `json:"data"`
}
///////////////////code
type GroupMember struct {
ID string `json:"id" bson:"_id"`
Memberid string `json:"memberid"`
Groupid string `json:"grouid"`
Data map[string]any `json:"data"`
}