package
Version:
v0.0.0-...-ed9e5cc
Opens a new window with list of versions in this module.
Published: Jan 5, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func CreateTable(db *sql.DB) error
-
func Delete(db *sql.DB, sign string) error
-
func GetCode(db *sql.DB, sign string) (string, error)
-
func GetDate(db *sql.DB, sign string) (int64, error)
-
func GetMobile(db *sql.DB, sign string) (string, error)
-
func Insert(db *sql.DB, mobile string, date int64, code string, sign string) error
-
type Message
CreateTable create message table.
Delete Clear delete a message.
GetCode return message date and nil or "0"and err.
GetDate return message date(unixtime) and nil if no err,or (0,err).
GetMobile return User's mobile like ID or "0" and err
Insert Insert a new message.
type Message struct {
Mobile string `db:"mobile"`
Date int64 `db:"date"`
Code string `db:"code"`
Sign string `db:"sign"`
}
Message -
GetMessage return message
Source Files
¶
Click to show internal directories.
Click to hide internal directories.