rpc

package
v1.0.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	App     = "ac_app"
	Manager = "Manager"
)
View Source
const (
	Resource = "Resource"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
}

func NewFile

func NewFile() *File

func (File) GetFileURL

func (i File) GetFileURL(ctx kratosx.Context, sha string) string

type Permission

type Permission struct {
}

func NewPermission

func NewPermission() *Permission

func (*Permission) GetApp

func (infra *Permission) GetApp(ctx kratosx.Context) (bool, []uint32, error)

GetApp 获取当前用户对于env的权限

func (*Permission) GetPermission

func (infra *Permission) GetPermission(ctx kratosx.Context, keyword string) (bool, []uint32, error)

GetPermission 获取当前用户,指定key的权限

func (*Permission) HasApp

func (infra *Permission) HasApp(ctx kratosx.Context, id uint32) bool

HasApp 获取当前用户是否具有指定env的权限

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳