Documentation ¶
Index ¶
- Constants
- type Permission
- func (infra *Permission) GetEnv(ctx kratosx.Context) (bool, []uint32, error)
- func (infra *Permission) GetPermission(ctx kratosx.Context, keyword string) (bool, []uint32, error)
- func (infra *Permission) GetServer(ctx kratosx.Context) (bool, []uint32, error)
- func (infra *Permission) HasEnv(ctx kratosx.Context, id uint32) bool
- func (infra *Permission) HasServer(ctx kratosx.Context, id uint32) bool
Constants ¶
View Source
const ( Manager = "Manager" Env = "cfg_env" Server = "cfg_server" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Permission ¶ added in v1.0.48
type Permission struct { }
func NewPermission ¶ added in v1.0.48
func NewPermission() *Permission
func (*Permission) GetPermission ¶ added in v1.0.48
GetPermission 获取当前用户,指定key的权限
Click to show internal directories.
Click to hide internal directories.