emailtemplate

package
Version: v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ETCreateRequest

type ETCreateRequest struct {
	Code        string           `json:"code"`
	Name        string           `json:"name"`
	IsActive    bool             `json:"isActive"`
	EmailFormat string           `json:"emailFormat"`
	Template    *ETCreateVersion `json:"template"`
}

ETCreateRequest type

func (*ETCreateRequest) Validate

func (r *ETCreateRequest) Validate() error

Validate ETCreateRequest

type ETCreateResponse

type ETCreateResponse struct {
	Code    string `json:"code"`
	Version string `json:"version"`
}

ETCreateResponse type

func (*ETCreateResponse) ToJSON

func (r *ETCreateResponse) ToJSON() []byte

ToJSON covert to JSON

type ETCreateVersion

type ETCreateVersion struct {
	SubjectTpl string `json:"subjectTpl"`
	BodyTpl    string `json:"bodyTpl"`
}

ETCreateVersion type

func (*ETCreateVersion) Validate

func (r *ETCreateVersion) Validate() error

Validate ETCreateVersion

type ETDeleteRequest

type ETDeleteRequest struct {
	Code string `json:"code"`
}

ETDeleteRequest type

func (*ETDeleteRequest) Validate

func (r *ETDeleteRequest) Validate() error

Validate ETDeleteRequest

type ETDeleteResponse

type ETDeleteResponse struct {
	Query *ETDeleteRequest      `json:"query"`
	Data  *ETDeleteResponseData `json:"data"`
}

ETDeleteResponse type

func (*ETDeleteResponse) ToJSON

func (r *ETDeleteResponse) ToJSON() []byte

ToJSON covert to JSON

type ETDeleteResponseData

type ETDeleteResponseData struct {
	EmailTemplate
	VersionCount int64 `json:"versionCount"`
}

ETDeleteResponseData type

type ETFindByCodeData

type ETFindByCodeData struct {
	EmailTemplate
	DefaultTemplateVersion EmailTemplateVersion `json:"defaultTemplate"`
}

ETFindByCodeData type

type ETFindByCodeRequest

type ETFindByCodeRequest struct {
	Code string `json:"code"`
}

ETFindByCodeRequest type

func (*ETFindByCodeRequest) Validate

func (r *ETFindByCodeRequest) Validate() error

Validate ETFindByCodeRequest

type ETFindByCodeResponse

type ETFindByCodeResponse struct {
	Query ETFindByCodeRequest `json:"query"`
	Data  ETFindByCodeData    `json:"data"`
}

ETFindByCodeResponse type

func (*ETFindByCodeResponse) ToJSON

func (r *ETFindByCodeResponse) ToJSON() []byte

ToJSON covert to JSON

type ETListAllResponse

type ETListAllResponse struct {
	Count int64            `json:"count"`
	Data  []*EmailTemplate `json:"data"`
}

ETListAllResponse type

func (*ETListAllResponse) ToJSON

func (r *ETListAllResponse) ToJSON() []byte

ToJSON covert to JSON

type ETSetActiveData

type ETSetActiveData struct {
	IsActive bool `json:"isActive"`
}

ETSetActiveData type

func (*ETSetActiveData) Validate

func (r *ETSetActiveData) Validate() error

Validate ETSetActiveData

type ETSetActiveKeys

type ETSetActiveKeys struct {
	Code string `json:"code"`
}

ETSetActiveKeys type

func (*ETSetActiveKeys) Validate

func (r *ETSetActiveKeys) Validate() error

Validate ETSetActiveKeys

type ETSetActiveRequest

type ETSetActiveRequest struct {
	Keys *ETSetActiveKeys `json:"keys"`
	Data *ETSetActiveData `json:"data"`
}

ETSetActiveRequest type

func (*ETSetActiveRequest) Validate

func (r *ETSetActiveRequest) Validate() error

Validate ETSetActiveRequest

type ETSetActiveResponse

type ETSetActiveResponse struct {
	Code     string `json:"code"`
	IsActive bool   `json:"isActive"`
}

ETSetActiveResponse type

func (*ETSetActiveResponse) ToJSON

func (r *ETSetActiveResponse) ToJSON() []byte

ToJSON covert to JSON

type ETUpdateData

type ETUpdateData struct {
	Name        string           `json:"name"`
	IsActive    bool             `json:"isActive"`
	EmailFormat string           `json:"emailFormat"`
	Template    *ETUpdateVersion `json:"template"`
}

ETUpdateData type

func (*ETUpdateData) Validate

func (r *ETUpdateData) Validate() error

Validate ETUpdateData

type ETUpdateKeys

type ETUpdateKeys struct {
	Code string `json:"code"`
}

ETUpdateKeys type

func (*ETUpdateKeys) Validate

func (r *ETUpdateKeys) Validate() error

Validate ETUpdateKeys

type ETUpdateRequest

type ETUpdateRequest struct {
	Keys *ETUpdateKeys `json:"keys"`
	Data *ETUpdateData `json:"data"`
}

ETUpdateRequest type

func (*ETUpdateRequest) Validate

func (r *ETUpdateRequest) Validate() error

Validate ETUpdateRequest

type ETUpdateResponse

type ETUpdateResponse struct {
	Code    string `json:"code"`
	Version string `json:"version"`
}

ETUpdateResponse type

func (*ETUpdateResponse) ToJSON

func (r *ETUpdateResponse) ToJSON() []byte

ToJSON covert to JSON

type ETUpdateVersion

type ETUpdateVersion struct {
	SubjectTpl string `json:"subjectTpl"`
	BodyTpl    string `json:"bodyTpl"`
}

ETUpdateVersion type

func (*ETUpdateVersion) Validate

func (r *ETUpdateVersion) Validate() error

Validate ETUpdateVersion

type EmailTemplate

type EmailTemplate struct {
	ID               uint64 `json:"ID"`
	UUID             string `json:"uuid"`
	Code             string `json:"code"`
	Name             string `json:"name"`
	IsActive         bool   `json:"isActive"`
	EmailFormat      string `json:"emailFormat"`
	DefaultVersionID uint64 `json:"defaultVersionID"`
}

EmailTemplate type

type EmailTemplateVersion

type EmailTemplateVersion struct {
	ID              uint64         `json:"ID"`
	Version         string         `json:"version"`
	SubjectTpl      string         `json:"subjectTpl"`
	BodyTpl         string         `json:"bodyTpl"`
	EmailTemplateID uint64         `json:"emailTemplateID"`
	EmailTemplate   *EmailTemplate `json:"emailTemplate"`
}

EmailTemplateVersion type

Jump to

Keyboard shortcuts

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