model

package
v0.0.0-...-3c58e14 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sqlx.DB

Functions

func UserAdd

func UserAdd(name, num, password, logo string, age int) bool

func UserDel

func UserDel(id int) bool

func UserUpdate

func UserUpdate(name, num, password, logo string, age, id int) bool

Types

type User

type User struct {
	Id       int    `json:"id" form:"id"`
	Name     string `json:"name":"name" form:"name"`
	Num      string `json:"num" form:"num"`
	Password string `json:"password" form:"password"`
	Age      int    `json:"age" form:"age"`
}

func UserAll

func UserAll() ([]User, error)

func UserOne

func UserOne(id int) (User, error)

Jump to

Keyboard shortcuts

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