adapter

package
v0.0.0-...-4d27263 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailTemplate

type EmailTemplate struct {
	TemplateCode string `json:"templateCode"`
	Content      string `json:"content"`
}

func EmailTemplateFromEnt

func EmailTemplateFromEnt(data *ent.EmailTemplate) *EmailTemplate

func EmailTemplatesFromEnt

func EmailTemplatesFromEnt(data []*ent.EmailTemplate) []*EmailTemplate

type SendEmailRequest

type SendEmailRequest struct {
	UserId string `json:"userId,omitempty"`
	To     string `json:"to,omitempty"`
	Action int32  `json:"action"`
	Data   string `json:"data"`
	Lang   string `json:"lang,omitempty"`
}

type UpdateEmailTemplateRequest

type UpdateEmailTemplateRequest struct {
	TemplateCode string `json:"templateCode"`
	Content      string `json:"content,omitempty"`
}

type UpdateUserEmailLangRequest

type UpdateUserEmailLangRequest struct {
	Email   string `json:"email"`
	Country string `json:"country"`
}

type UserEmailLang

type UserEmailLang struct {
	EmailTo string `json:"emailTo"`
	Country string `json:"country,omitempty"`
}

func UserEmailLangFromEnt

func UserEmailLangFromEnt(data *ent.UserEmailLang) *UserEmailLang

func UserEmailLangsFromEnt

func UserEmailLangsFromEnt(data []*ent.UserEmailLang) []*UserEmailLang

Jump to

Keyboard shortcuts

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