storage

package
v1.0.44 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *gorm.DB) error

Types

type StorageService

type StorageService struct {
	// contains filtered or unexported fields
}

func NewStorageService

func NewStorageService(db *gorm.DB, ctx *context.ERPContext, inventoryService *inventory.InventoryService) *StorageService

func (*StorageService) CreateLocation

func (s *StorageService) CreateLocation(data *models.LocationPointModel, warehouse *models.WarehouseModel) error

func (*StorageService) CreateWarehouse

func (s *StorageService) CreateWarehouse(data *models.WarehouseModel, lat, lng *float64) error

func (*StorageService) DeleteWarehouse

func (s *StorageService) DeleteWarehouse(id string) error

func (*StorageService) DeleteWarehouseLocation

func (s *StorageService) DeleteWarehouseLocation(id string) error

func (*StorageService) GetWarehouseLocationByID

func (s *StorageService) GetWarehouseLocationByID(id string) (*models.LocationPointModel, error)

func (*StorageService) GetWarehouseLocations

func (s *StorageService) GetWarehouseLocations(request http.Request, search string) (paginate.Page, error)

func (*StorageService) GetWarehouses

func (s *StorageService) GetWarehouses(request http.Request, search string) (paginate.Page, error)

func (*StorageService) UpdateWarehouse

func (s *StorageService) UpdateWarehouse(id string, data *models.WarehouseModel) error

func (*StorageService) UpdateWarehouseLocation

func (s *StorageService) UpdateWarehouseLocation(id string, data *models.LocationPointModel) error

Jump to

Keyboard shortcuts

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