github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/istructsmem/internal/descr/interface_role.go (about) 1 /* 2 * Copyright (c) 2024-present Sigma-Soft, Ltd. 3 * @author: Nikolay Nikitin 4 */ 5 6 package descr 7 8 import "github.com/voedger/voedger/pkg/appdef" 9 10 type Role struct { 11 Type 12 Privileges []*Privilege 13 } 14 15 type Privilege struct { 16 Comment string `json:",omitempty"` 17 Access string // `grant` or `revoke` 18 Kinds []string 19 On appdef.QNames 20 Fields []string `json:",omitempty"` 21 }