db

package
v0.0.0-...-8746e91 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMigrate

func CreateMigrate(db *gorm.DB, t ...interface{})

CreateMigrate ...

func DeleteID

func DeleteID(db *gorm.DB, id int) error

DeleteID ...

func Get

func Get(db *gorm.DB, f map[string]interface{}) (*[]OS, error)

Get ...

func Init

func Init(db *gorm.DB, t ...interface{})

Init ...

func Login

func Login(db *gorm.DB, user User) error

Login ...

func Update

func Update(db *gorm.DB, os OS) error

Update ...

Types

type OS

type OS struct {
	gorm.Model
	NumeroOs    int
	NomeCliente string
	Cnpj14      int
}

OS ...

func GetAll

func GetAll(db *gorm.DB) ([]OS, error)

GetAll return all register database

func GetNome

func GetNome(db *gorm.DB, nome string) ([]OS, error)

GetNome Find register

func Insert

func Insert(db *gorm.DB, os OS) (OS, error)

Insert ...

type User

type User struct {
	gorm.Model
	User     string
	Password string
}

User ...

Jump to

Keyboard shortcuts

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