BaseEmail2

package
v5.1.37 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func UpdateTemplate

func UpdateTemplate(args *ArgsCreateTemplate) (err error)

UpdateTemplate 修改模板

Types

type ArgsCreateTemplate

type ArgsCreateTemplate struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id" check:"id"`
	//计划使用的邮箱配置列
	// 多个配置将随机抽取一个发送
	ServerIDs pq.Int64Array `db:"server_ids" json:"serverIDs" check:"ids" empty:"true"`
	//标题
	Title string `db:"title" json:"title" check:"name"`
	//内容
	// 将强制邮件采用HTML模式发送,此处存放HTML内容
	// 相关变量根据模块的约定执行
	Content string `db:"content" json:"content" check:"des" min:"1" max:"3000" empty:"true"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

ArgsCreateTemplate 创建模板参数

Jump to

Keyboard shortcuts

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