dao

package
v0.0.0-...-734aee2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB() *gorm.DB

func NewMachineDao

func NewMachineDao(db *gorm.DB) *machineDaoImpl

Types

type MachineDao

type MachineDao interface {
	Add(m *model.Machine) error
	Delete(id int) error
	SelectById(id int) (*model.Machine, error)
	SelectByName(name string) (*model.Machine, error)
	SelectAll() ([]model.Machine, error)
	SelectLikeName(name string) ([]model.Machine, error)
	UpdateMachineById(machine *model.Machine) error
}

Jump to

Keyboard shortcuts

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