configs

package
v0.0.0-...-2c22dde Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Gentoken

func Gentoken(admin Admin) string

func GetDB

func GetDB() *sql.DB

Types

type Admin

type Admin struct {
	Id       int
	Name     string
	Password string
}

func Getadminbyid

func Getadminbyid(id int64) (*Admin, error)

func Verifytoken

func Verifytoken(tokens string) (*Admin, error)

type Login

type Login struct {
	Name     string
	Password string
}

type Order

type Order struct {
	Id        int
	Productid int
	Quantity  int
	Price     float32
	Location  string
}

type Postoder

type Postoder struct {
	Productid int
	Quantity  int
	Location  string
}

type Products

type Products struct {
	Id       int
	Name     string
	Quantity int
	Price    float32
	Img      string
}

Jump to

Keyboard shortcuts

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