md

package
v0.0.0-...-734a412 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ServiceAppName    = "service:app_name"
	ServiceAppVersion = "service:app_version"
	ServiceBuildTime  = "service:build_time"
)

Variables

This section is empty.

Functions

func AppName

func AppName(ctx kratosx.Context) string

func AppVersion

func AppVersion(ctx kratosx.Context) string

func BuildTime

func BuildTime(ctx kratosx.Context) string

func DepartmentId

func DepartmentId(ctx kratosx.Context) uint32

func DepartmentKeyword

func DepartmentKeyword(ctx kratosx.Context) string

func New

func New(info *Auth) map[string]any

func RoleId

func RoleId(ctx kratosx.Context) uint32

func RoleKeyword

func RoleKeyword(ctx kratosx.Context) string

func UserId

func UserId(ctx kratosx.Context) uint32

Types

type Auth

type Auth struct {
	UserId            uint32 `json:"userId"`
	RoleId            uint32 `json:"roleId"`
	RoleKeyword       string `json:"roleKeyword"`
	DepartmentId      uint32 `json:"departmentId"`
	DepartmentKeyword string `json:"departmentKeyword"`
}

func Get

func Get(ctx kratosx.Context) *Auth

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL