areaRacklot

package
v2.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchCreate

func BatchCreate(db *gorm.DB, areaID int, racklots []int) (bool, error)

func Create

func Create(db *gorm.DB, areaID int, racklotID int) (bool, error)

func Delete

func Delete(db *gorm.DB, areaID int, racklotID int) (bool, error)

func DeleteByArea

func DeleteByArea(db *gorm.DB, areaID int) (bool, error)

func DeleteByAreaRacklots

func DeleteByAreaRacklots(db *gorm.DB, areaID int, racklotIDs []int) (bool, error)

func DeleteByAreas

func DeleteByAreas(db *gorm.DB, areaIDs []int) (bool, error)

func DeleteByRacklot

func DeleteByRacklot(db *gorm.DB, racklotID int) (bool, error)

func DeleteByRacklots

func DeleteByRacklots(db *gorm.DB, racklotIDs []int) (bool, error)

func IsExit

func IsExit(db *gorm.DB, AreaID int, RacklotID int) (bool, error)

func IsExitByRacklot

func IsExitByRacklot(db *gorm.DB, racklotID int) (bool, error)

func IsExitByRacklots

func IsExitByRacklots(db *gorm.DB, racklotIDs []int) (bool, error)

func Update

func Update(db *gorm.DB, id int, updateMap map[string]interface{}) (bool, error)

Types

type AreaRacklot

type AreaRacklot struct {
	gorm.Model
	AreaID    int
	RacklotID int
}

AreaRacklotModel ..

func Query

func Query(db *gorm.DB, AreaID int, RacklotID int) (*AreaRacklot, error)

Jump to

Keyboard shortcuts

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