Documentation ¶
Index ¶
- Constants
- type PermissionInfra
- func (infra *PermissionInfra) GetEnv(ctx kratosx.Context) (bool, []uint32, error)
- func (infra *PermissionInfra) GetPermission(ctx kratosx.Context, keyword string) (bool, []uint32, error)
- func (infra *PermissionInfra) GetServer(ctx kratosx.Context) (bool, []uint32, error)
- func (infra *PermissionInfra) HasEnv(ctx kratosx.Context, id uint32) bool
- func (infra *PermissionInfra) 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 PermissionInfra ¶
type PermissionInfra struct { }
func NewPermissionInfra ¶
func NewPermissionInfra() *PermissionInfra
func (*PermissionInfra) GetPermission ¶
func (infra *PermissionInfra) GetPermission(ctx kratosx.Context, keyword string) (bool, []uint32, error)
GetPermission 获取当前用户,指定key的权限
Click to show internal directories.
Click to hide internal directories.