Documentation
¶
Index ¶
- type Service
- func (s *Service) Cancel(ctx context.Context, req *repositories.CancelShipmentRequest) (*shipment.Shipment, error)
- func (s *Service) Create(ctx context.Context, shp *shipment.Shipment, userID pulid.ID) (*shipment.Shipment, error)
- func (s *Service) Duplicate(ctx context.Context, req *repositories.DuplicateShipmentRequest) (*shipment.Shipment, error)
- func (s *Service) Get(ctx context.Context, opts repositories.GetShipmentByIDOptions) (*shipment.Shipment, error)
- func (s *Service) GetNextProNumber(ctx context.Context, orgID pulid.ID) (string, error)
- func (s *Service) List(ctx context.Context, opts *repositories.ListShipmentOptions) (*ports.ListResult[*shipment.Shipment], error)
- func (s *Service) SelectOptions(ctx context.Context, opts *repositories.ListShipmentOptions) ([]*types.SelectOption, error)
- func (s *Service) Update(ctx context.Context, shp *shipment.Shipment, userID pulid.ID) (*shipment.Shipment, error)
- type ServiceParams
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 (s *Service) Cancel(ctx context.Context, req *repositories.CancelShipmentRequest) (*shipment.Shipment, error)
func (*Service) Duplicate ¶
func (s *Service) Duplicate(ctx context.Context, req *repositories.DuplicateShipmentRequest) (*shipment.Shipment, error)
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, opts repositories.GetShipmentByIDOptions) (*shipment.Shipment, error)
func (*Service) GetNextProNumber ¶
func (*Service) List ¶
func (s *Service) List(ctx context.Context, opts *repositories.ListShipmentOptions) (*ports.ListResult[*shipment.Shipment], error)
func (*Service) SelectOptions ¶
func (s *Service) SelectOptions(ctx context.Context, opts *repositories.ListShipmentOptions) ([]*types.SelectOption, 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 }
Click to show internal directories.
Click to hide internal directories.