inventory

package
v0.0.0-...-e07d5b6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInventoryItemHandler

func CreateInventoryItemHandler(c *gin.Context)

func GetInventoryItemHandler

func GetInventoryItemHandler(c *gin.Context)

func InventoryRoutes

func InventoryRoutes(app *gin.Engine)

func ListInventoryItemHandler

func ListInventoryItemHandler(c *gin.Context)

func UpdateInventoryItemHandler

func UpdateInventoryItemHandler(c *gin.Context)

Types

type InventoryItem

type InventoryItem struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	Property    primitive.ObjectID `json:"property" bson:"property"`
	Name        string             `json:"name" bson:"name" validate:"required"`
	Description string             `json:"description" bson:"description"`
	Notes       string             `json:"notes" bson:"notes"`
	Room        common.RoomEntity  `json:"room" bson:"room"`
	Images      []common.Image     `json:"images" bson:"images"`
	common.Timestamps
	common.Audit
}

type InventoryRepository

type InventoryRepository struct {
	adapters.MongoRepository[InventoryItem]
}

Jump to

Keyboard shortcuts

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