mail

package
v0.0.0-...-31a4683 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailRepository

type MailRepository struct {
	*sqlx.DB
}

func NewMailRepository

func NewMailRepository(db *sqlx.DB) *MailRepository

func (*MailRepository) DeleteMails

func (db *MailRepository) DeleteMails(characterId int, mailIds *[]int) (deletedIds *[]int, err error)

func (*MailRepository) ExecTx

func (r *MailRepository) ExecTx(f func(tx *sqlx.Tx) error) error

func (*MailRepository) RetrieveMails

func (db *MailRepository) RetrieveMails(characterId int, unreadedOnly bool, limit int, start int) (mails *[]model.ReceivedMail, isContinue bool, err error)

func (*MailRepository) RetrieveSentMails

func (db *MailRepository) RetrieveSentMails(characterId int, limit int, start int) (mails *[]model.SentMail, isContinue bool, err error)

func (*MailRepository) SendAdministratorMail

func (db *MailRepository) SendAdministratorMail(targetId *int, name, title, message string) (webhooks []string, err error)

func (*MailRepository) SendMail

func (db *MailRepository) SendMail(userId, targetId int, title, message string) (userName string, targetWebhook string, err error)

func (*MailRepository) SetMailRead

func (db *MailRepository) SetMailRead(characterId int, mailId int) (existsUnreadMail bool, err error)

Jump to

Keyboard shortcuts

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