groups-management/storage/groups.go

16 lines
410 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"`
Groupid string `json:"grouid" bson:"_groupid"`
Data map[string]any `json:"data"`
}