models

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *gorm.DB

GetDB to get the DataBase

Types

type AccountsModel

type AccountsModel struct {
	gorm.Model
	Email    string `json:"email"`
	Password string `json:"password"`
	Token    string `json:"token"`
}

AccountsModel to get the DataBase

func GetTableDataByID

func GetTableDataByID(table string, id string) *AccountsModel

GetTableDataByID to get the DataBase

Jump to

Keyboard shortcuts

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