template

package
v0.0.0-...-82d1dcb Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateManager

type TemplateManager interface {
	// ExecuteTemplate 执行指定模板并返回渲染结果
	ExecuteTemplate(name string, data interface{}) (string, error)
	// AddTemplate 添加新模板
	AddTemplate(name, content string) error
}

TemplateManager 定义模板管理接口

func NewTemplateManager

func NewTemplateManager() (TemplateManager, error)

NewTemplateManager 创建模板管理器实例

type VerificationEmailData

type VerificationEmailData struct {
	Code          string
	ExpireMinutes int
}

VerificationEmailData 验证码邮件模板数据

Jump to

Keyboard shortcuts

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