cellMaterial

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchDeleteByCells

func BatchDeleteByCells(db *gorm.DB, cellIDs []uint32) (bool, error)

func BatchDeleteByMaterials

func BatchDeleteByMaterials(db *gorm.DB, materialIDs []int64) (bool, error)

func Create

func Create(db *gorm.DB, cellID uint32, materialID int64) (bool, error)

func Delete

func Delete(db *gorm.DB, cellID uint32, materialID int64) (bool, error)

func IsExit

func IsExit(db *gorm.DB, cellID uint32, materialID int64) (bool, error)

func IsExitByCells

func IsExitByCells(db *gorm.DB, cellIDs []uint32) (bool, error)

func Update

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

Types

type CellMaterial

type CellMaterial struct {
	gorm.Model
	CellID     uint32
	MaterialID int64
}

CellMaterialModel ..

func Query

func Query(db *gorm.DB, cellID uint32, materialID int64) (*CellMaterial, error)

Jump to

Keyboard shortcuts

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