Documentation ¶
Index ¶
- type MailRepository
- func (db *MailRepository) DeleteMails(characterId int, mailIds *[]int) (deletedIds *[]int, err error)
- func (r *MailRepository) ExecTx(f func(tx *sqlx.Tx) error) error
- func (db *MailRepository) RetrieveMails(characterId int, unreadedOnly bool, limit int, start int) (mails *[]model.ReceivedMail, isContinue bool, err error)
- func (db *MailRepository) RetrieveSentMails(characterId int, limit int, start int) (mails *[]model.SentMail, isContinue bool, err error)
- func (db *MailRepository) SendAdministratorMail(targetId *int, name, title, message string) (webhooks []string, err error)
- func (db *MailRepository) SendMail(userId, targetId int, title, message string) (userName string, targetWebhook string, err error)
- func (db *MailRepository) SetMailRead(characterId int, mailId int) (existsUnreadMail bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailRepository ¶
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) RetrieveMails ¶
func (db *MailRepository) RetrieveMails(characterId int, unreadedOnly bool, limit int, start int) (mails *[]model.ReceivedMail, isContinue bool, err error)
func (*MailRepository) RetrieveSentMails ¶
func (*MailRepository) SendAdministratorMail ¶
func (db *MailRepository) SendAdministratorMail(targetId *int, name, title, message string) (webhooks []string, err error)
func (*MailRepository) SetMailRead ¶
func (db *MailRepository) SetMailRead(characterId int, mailId int) (existsUnreadMail bool, err error)
Click to show internal directories.
Click to hide internal directories.