shipment

package
v0.0.0-...-20e6d49 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(p ServiceParams) *Service

func (*Service) Cancel

func (*Service) Create

func (s *Service) Create(ctx context.Context, shp *shipment.Shipment, userID pulid.ID) (*shipment.Shipment, error)

func (*Service) Duplicate

func (*Service) Get

func (*Service) GetNextProNumber

func (s *Service) GetNextProNumber(ctx context.Context, orgID pulid.ID) (string, error)

func (*Service) SelectOptions

func (s *Service) SelectOptions(ctx context.Context, opts *repositories.ListShipmentOptions) ([]*types.SelectOption, error)

func (*Service) Update

func (s *Service) Update(ctx context.Context, shp *shipment.Shipment, userID pulid.ID) (*shipment.Shipment, error)

type ServiceParams

type ServiceParams struct {
	fx.In

	Logger        *logger.Logger
	Repo          repositories.ShipmentRepository
	ProNumberRepo repositories.ProNumberRepository
	PermService   services.PermissionService
	AuditService  services.AuditService
	SearchService *search.Service
	Validator     *shipmentvalidator.Validator
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳