util

package
v0.0.0-...-521817c Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMS

type SMS struct {
	Phone   string `json:"phone" binding:"required"`
	Message string `json:"message" binding:"required"`
	Comment string `json:"comment"`
}

SMS ...

func NewSMS

func NewSMS() *SMS

NewSMS ...

func (*SMS) SendSMS

func (s *SMS) SendSMS() (*SMSResult, error)

SendSMS ...

func (*SMS) SetOTP

func (s *SMS) SetOTP(guest *model.Guest) (string, string)

SetOTP ...

type SMSResult

type SMSResult struct {
	ID     string
	Credit int
}

SMSResult ...

Jump to

Keyboard shortcuts

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