-
Notifications
You must be signed in to change notification settings - Fork 48
/
wasm.go
25 lines (22 loc) · 1.12 KB
/
wasm.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package types
import "encoding/json"
type SubspacesMsg struct {
CreateSubspace *json.RawMessage `json:"create_subspace"`
EditSubspace *json.RawMessage `json:"edit_subspace"`
DeleteSubspace *json.RawMessage `json:"delete_subspace"`
CreateUserGroup *json.RawMessage `json:"create_user_group"`
EditUserGroup *json.RawMessage `json:"edit_user_group"`
SetUserGroupPermissions *json.RawMessage `json:"set_user_group_permissions"`
DeleteUserGroup *json.RawMessage `json:"delete_user_group"`
AddUserToUserGroup *json.RawMessage `json:"add_user_to_user_group"`
RemoveUserFromUserGroup *json.RawMessage `json:"remove_user_from_user_group"`
SetUserPermissions *json.RawMessage `json:"set_user_permissions"`
}
type SubspacesQuery struct {
Subspaces *json.RawMessage `json:"subspaces"`
Subspace *json.RawMessage `json:"subspace"`
UserGroups *json.RawMessage `json:"user_groups"`
UserGroup *json.RawMessage `json:"user_group"`
UserGroupMembers *json.RawMessage `json:"user_group_members"`
UserPermissions *json.RawMessage `json:"user_permissions"`
}