Documentation
¶
Index ¶
- func Migrate(db *gorm.DB) error
- type StorageService
- func (s *StorageService) CreateLocation(data *models.LocationPointModel, warehouse *models.WarehouseModel) error
- func (s *StorageService) CreateWarehouse(data *models.WarehouseModel, lat, lng *float64) error
- func (s *StorageService) DeleteWarehouse(id string) error
- func (s *StorageService) DeleteWarehouseLocation(id string) error
- func (s *StorageService) GetWarehouseLocationByID(id string) (*models.LocationPointModel, error)
- func (s *StorageService) GetWarehouseLocations(request http.Request, search string) (paginate.Page, error)
- func (s *StorageService) GetWarehouses(request http.Request, search string) (paginate.Page, error)
- func (s *StorageService) UpdateWarehouse(id string, data *models.WarehouseModel) error
- func (s *StorageService) UpdateWarehouseLocation(id string, data *models.LocationPointModel) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (*StorageService) GetWarehouses ¶
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
Click to show internal directories.
Click to hide internal directories.