model

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

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB() (*sql.DB, error)

func InitRedis

func InitRedis() (*redis.Client, error)

Types

type PasswordChange

type PasswordChange struct {
	Token string `json:"token"`
	Old   string `json:"old"`
	New   string `json:"new"`
}

type Restaurant

type Restaurant struct {
	Id     int
	Name   string
	UserId int
	Custom int
}

type RestaurantForm

type RestaurantForm struct {
	Token      string     `json:"token"`
	Restaurant Restaurant `json:"restaurant"`
}

type Token

type Token struct {
	Token string `json:"token"`
}

type User

type User struct {
	Id       int
	Username string
	Password string
	Role     int
}

type UserLogin

type UserLogin struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type UserRegister

type UserRegister struct {
	Username string `json:""`
	Password string `json:""`
	Code     string `json:""`
	Key      string `json:""`
}

Jump to

Keyboard shortcuts

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