core

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitApp

func InitApp(opts ...kratosx.Option) *kratosx.App

InitApp 初始化系统

Types

type Conf

type Conf struct {
	DefaultUserAvatar   string // 默认头像
	DefaultUserPassword string // 默认密码
	Setting             struct {
		Name      string
		Debug     bool
		Title     string
		Desc      string
		Copyright string
		Logo      string
		Watermark string
		PopupType string
	}
	DictionaryKeywords []string
	ChangePasswordType string
}

type Context

type Context struct {
	kratosx.Context
}

func MustContext

func MustContext(ctx context.Context, opts ...kratosx.ContextOptionFunc) Context

func (Context) Auth

func (c Context) Auth() *auth.Info

func (Context) Clone

func (c Context) Clone() Context

func (Context) Config

func (Context) Config() *Conf

func (Context) HasAuth

func (c Context) HasAuth() bool

func (Context) IsSuperAdmin

func (c Context) IsSuperAdmin() bool

func (Context) Transaction

func (c Context) Transaction(fn func(ctx Context) error, name ...string) error

Jump to

Keyboard shortcuts

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