mysql

package
v0.0.0-...-ed9e5cc Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(db *sql.DB, name, password *string) error

Create create an administrative user

func CreateTable

func CreateTable(db *sql.DB, name, password *string) error

CreateTable create admin table.

func IsActive

func IsActive(db *sql.DB, id uint32) (bool, error)

IsActive return user.Active and nil if query success.

func Login

func Login(db *sql.DB, name, password *string) (uint32, error)

Login the administrative user logins

func ModifyAdminActive

func ModifyAdminActive(db *sql.DB, id uint32, active bool) error

ModifyAdminActive the administrative user updates active

func ModifyEmail

func ModifyEmail(db *sql.DB, id uint32, email *string) error

ModifyEmail the administrative user updates email

func ModifyMobile

func ModifyMobile(db *sql.DB, id uint32, mobile *string) error

ModifyMobile the administrative user updates mobile

func ModifyPassword

func ModifyPassword(db *sql.DB, id uint32, password, newPassword *string) error

ModifyPassword the administrative user updates password

Types

This section is empty.

Jump to

Keyboard shortcuts

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