Documentation ¶
Index ¶
- Constants
- func AppName(ctx kratosx.Context) string
- func AppVersion(ctx kratosx.Context) string
- func BuildTime(ctx kratosx.Context) string
- func DepartmentId(ctx kratosx.Context) uint32
- func DepartmentKeyword(ctx kratosx.Context) string
- func New(info *Auth) map[string]any
- func RoleId(ctx kratosx.Context) uint32
- func RoleKeyword(ctx kratosx.Context) string
- func UserId(ctx kratosx.Context) uint32
- type Auth
Constants ¶
View Source
const ( ServiceAppName = "service:app_name" ServiceAppVersion = "service:app_version" ServiceBuildTime = "service:build_time" )
Variables ¶
This section is empty.
Functions ¶
func AppVersion ¶
func DepartmentId ¶
func DepartmentKeyword ¶
func RoleKeyword ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.