md

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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:"user_id"`
	RoleId            uint32 `json:"role_id"`
	RoleKeyword       string `json:"role_keyword"`
	DepartmentId      uint32 `json:"department_id"`
	DepartmentKeyword string `json:"department_keyword"`
}

func Get added in v1.0.12

func Get(ctx kratosx.Context) (*Auth, error)

Jump to

Keyboard shortcuts

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