Help us shape the future of Go! Take the 2026 Go Developer Survey

setup

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitializeSystemReq

type InitializeSystemReq struct {
	AdminUsername string
	AdminPassword string
	AdminEmail    string
}

InitializeSystemReq 系统初始化请求

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService() *Service

func (*Service) InitializeSystem

func (s *Service) InitializeSystem(ctx context.Context, req *InitializeSystemReq) error

InitializeSystem 初始化系统,创建第一个管理员

func (*Service) IsSystemInitialized

func (s *Service) IsSystemInitialized(ctx context.Context) (bool, error)

IsSystemInitialized 检查系统是否已初始化 通过检查是否存在管理员用户来判断

Jump to

Keyboard shortcuts

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