dao

package
v0.0.0-...-5ff37f2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllLayouts

func AllLayouts() (types.Layouts, error)

AllLayouts get all layouts

func AllMailTemplates

func AllMailTemplates() (types.MailTemplates, error)

AllMailTemplates get all mail templates

func AllSMTPServers

func AllSMTPServers() (types.SMTPServers, error)

AllSMTPServers get all smtp servers

func CreateOrUpdateLayout

func CreateOrUpdateLayout(t types.Layout) (types.Layout, error)

CreateOrUpdateLayout Save a layout

func CreateOrUpdateSMTPServer

func CreateOrUpdateSMTPServer(t types.SMTPServer) (types.SMTPServer, error)

CreateOrUpdateSMTPServer create or update smtp conf

func CreateorUpdateMailTemplate

func CreateorUpdateMailTemplate(t types.MailTemplate) (types.MailTemplate, error)

CreateorUpdateMailTemplate Save a mail template

func DeleteLayout

func DeleteLayout(id string) error

DeleteLayout a layout by id

func DeleteMailTemplate

func DeleteMailTemplate(id string) error

DeleteMailTemplate a template mail by id

func DeleteSMTPServers

func DeleteSMTPServers(id string) error

DeleteSMTPServers remove a stmp conf by id

func GetByIDLayout

func GetByIDLayout(id string) (types.Layout, error)

GetByIDLayout find one layout by id

func GetByIDMailTemplate

func GetByIDMailTemplate(id string) (types.MailTemplate, error)

GetByIDMailTemplate find one mail template by id

func GetByIDSMTPServer

func GetByIDSMTPServer(id string) (types.SMTPServer, error)

GetByIDSMTPServer get one smtp server by id

Types

This section is empty.

Jump to

Keyboard shortcuts

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