Documentation ¶
Index ¶
- func GenerateVerificationCode() (string, error)
- type BigDecimal
- func (bd *BigDecimal) Add(b *BigDecimal) *BigDecimal
- func (bd *BigDecimal) Cmp(b *BigDecimal) int
- func (bd *BigDecimal) Div(b *BigDecimal) (*BigDecimal, error)
- func (bd *BigDecimal) Mul(b *BigDecimal) *BigDecimal
- func (bd *BigDecimal) String() string
- func (bd *BigDecimal) Sub(b *BigDecimal) *BigDecimal
- func (bd *BigDecimal) Value() *apd.Decimal
- type MailService
- func (s *MailService) SendDepositNotification(toEmail string, amount string) error
- func (s *MailService) SendEmail(to, subject, body string) error
- func (s *MailService) SendLoginEmail(to, code string) error
- func (s *MailService) SendTransferNotification(fromEmail, toEmail string, amount string) error
- func (s *MailService) SendVerificationEmail(to, code string) error
- func (s *MailService) SendWithdrawalNotification(toEmail string, amount string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BigDecimal ¶
type BigDecimal struct {
// contains filtered or unexported fields
}
func NewBigDecimal ¶
func NewBigDecimal(value string) (*BigDecimal, error)
func (*BigDecimal) Add ¶
func (bd *BigDecimal) Add(b *BigDecimal) *BigDecimal
func (*BigDecimal) Cmp ¶
func (bd *BigDecimal) Cmp(b *BigDecimal) int
func (*BigDecimal) Div ¶
func (bd *BigDecimal) Div(b *BigDecimal) (*BigDecimal, error)
func (*BigDecimal) Mul ¶
func (bd *BigDecimal) Mul(b *BigDecimal) *BigDecimal
func (*BigDecimal) String ¶
func (bd *BigDecimal) String() string
func (*BigDecimal) Sub ¶
func (bd *BigDecimal) Sub(b *BigDecimal) *BigDecimal
type MailService ¶
type MailService struct {
// contains filtered or unexported fields
}
func NewMailService ¶
func NewMailService(smtpServer, username, password string, port int) *MailService
func (*MailService) SendDepositNotification ¶
func (s *MailService) SendDepositNotification(toEmail string, amount string) error
func (*MailService) SendEmail ¶
func (s *MailService) SendEmail(to, subject, body string) error
func (*MailService) SendLoginEmail ¶
func (s *MailService) SendLoginEmail(to, code string) error
func (*MailService) SendTransferNotification ¶
func (s *MailService) SendTransferNotification(fromEmail, toEmail string, amount string) error
func (*MailService) SendVerificationEmail ¶
func (s *MailService) SendVerificationEmail(to, code string) error
func (*MailService) SendWithdrawalNotification ¶
func (s *MailService) SendWithdrawalNotification(toEmail string, amount string) error
Click to show internal directories.
Click to hide internal directories.