mailApi

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMailSubject = "no title"
)

Variables

This section is empty.

Functions

func GetByMessage

func GetByMessage(ctx server.Context)

Types

type MailInfoResp

type MailInfoResp struct {
	Id         int    `json:"id,omitempty"`
	MessageId  int    `json:"messageId,omitempty"` // message
	TemplateId int    `json:"templateId,omitempty"`
	Params     string `json:"params,omitempty"`
	Status     int    `json:"status,omitempty"`
	CreateTime string `json:"createTime,omitempty"`
	UpdateTime string `json:"updateTime,omitempty"`
}

type Req

type Req struct {
	Template      string      `json:"template"`           // template of this mail
	TemplateParam interface{} `json:"params,omitempty"`   // template params
	Subject       string      `json:"subject,omitempty"`  // mail's subject
	Sender        string      `json:"sender,omitempty"`   // mail send account on the platform
	Receiver      string      `json:"receiver,omitempty"` // receiver list(with comma if multi)
	Cc            string      `json:"cc,omitempty"`       // cc list(with comma if multi)
}

type Resp

type Resp struct {
	app.Response
	MessageId int `json:"messageId,omitempty"`
}

type RespWrapper

type RespWrapper struct {
	app.Response
	MailInfoResp
}

Jump to

Keyboard shortcuts

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