db

package
v0.0.0-...-b661915 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INSERT_USER         = `insert into t_user (userid, username, password, createtime) values(?,?,?,?)`
	SELECT_USER_BY_NAME = `select * from t_user where userid=?`
)

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(username, password string) error

func GetUser

func GetUser(userid string) *model.User

func InitAdminUser

func InitAdminUser()

func InitDB

func InitDB()

Types

This section is empty.

Jump to

Keyboard shortcuts

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