distribution

package
v1.0.68 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DistributionService

type DistributionService struct {
	DistributorService  *distributor.DistributorService
	OfferingService     *offering.OfferingService
	OrderRequestService *order_request.OrderRequestService
	ShippingService     *shipping.ShippingService

	CartService     *cart.CartService
	LogisticService *logistic.LogisticService
	StorageService  *storage.StorageService
	// contains filtered or unexported fields
}

func NewDistributionService

func NewDistributionService(ctx *context.ERPContext, auditTrailService *audit_trail.AuditTrailService, inventoryService *inventory.InventoryService, orderService *order.OrderService) *DistributionService

NewDistributionService creates a new instance of DistributionService with the given ERP context, audit trail service, inventory service, and order service.

It also migrates the database according to the latest schema, and creates all the necessary subservices.

func (*DistributionService) DB

func (s *DistributionService) DB() *gorm.DB

func (*DistributionService) Migrate

func (s *DistributionService) Migrate() error

Directories

Path Synopsis
provider
distribution/shipping/provider/gosend.go
distribution/shipping/provider/gosend.go

Jump to

Keyboard shortcuts

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