Documentation ¶
Index ¶
- Constants
- func CreateAdmin(db *sql.DB, name, password *string) error
- func CreateDatabase(db *sql.DB) error
- func CreateTable(db *sql.DB, name, password *string) error
- func IsActive(db *sql.DB, id uint64) (bool, error)
- func Login(db *sql.DB, name, password *string) (uint32, error)
- func ModifyAdminActive(db *sql.DB, id uint32, active bool) error
- func ModifyEmail(db *sql.DB, id uint32, email *string) error
- func ModifyMobile(db *sql.DB, id uint32, mobile *string) error
- func ModifyPassword(db *sql.DB, id uint32, password, newPassword *string) error
Constants ¶
View Source
const ( DBName = "admin" TableName = "admin" )
Variables ¶
This section is empty.
Functions ¶
func CreateAdmin ¶
CreateAdmin create an administrative user
func CreateTable ¶
CreateTable create admin table.
func ModifyAdminActive ¶
ModifyAdminActive the administrative user updates active
func ModifyEmail ¶
ModifyEmail the administrative user updates email
func ModifyMobile ¶
ModifyMobile the administrative user updates mobile
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.