Documentation ¶
Index ¶
- func ValidPrivilege() gin.HandlerFunc
- type Privilege
- func (p *Privilege) GetAllMainLineObject() []string
- func (p *Privilege) GetAppRole() []string
- func (p *Privilege) GetRolePrivilege(objID string, role string) []string
- func (p *Privilege) GetUserPrivilegeApp(appRole []string) map[int64][]string
- func (p *Privilege) GetUserPrivilegeConfig() (map[string][]string, []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidPrivilege ¶
func ValidPrivilege() gin.HandlerFunc
Types ¶
type Privilege ¶
type Privilege struct { UserName string APIAddr string OwnerID string // contains filtered or unexported fields }
func NewPrivilege ¶
func (*Privilege) GetAllMainLineObject ¶
GetAllMainLineObject get all main line object
func (*Privilege) GetRolePrivilege ¶
GetRolePrivilege get role privilege
func (*Privilege) GetUserPrivilegeApp ¶
GetUserPrivilegeApp get user privilege app
Click to show internal directories.
Click to hide internal directories.