service

package
v0.0.0-...-4ce1ff4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

type Notification interface {
	Shipper(ctx context.Context, data *entity.Shipper) error
}

type Shipping

type Shipping interface {
	ShippingOrder(ctx context.Context, data *entity.ShippingOrder) error
	Pricing(ctx context.Context, data *dto.PricingReq) (*dto.ShipperRes[*entity.Pricing], error)
	CreateLabel(ctx context.Context, data *dto.CreateLabelReq) (*dto.ShipperRes[*entity.Label], error)
	RequestPickup(ctx context.Context, shippingIds []string) error

	TrackingByShippingId(ctx context.Context, shippingId string) (*entity.Tracking, error)
	GetProvinces(ctx context.Context) (*dto.ShipperRes[[]*entity.Province], error)
	GetCitiesByProvinceId(ctx context.Context, provinceId int) (*dto.ShipperRes[[]*entity.City], error)
	GetSuburbsByCityId(ctx context.Context, cityId int) (*dto.ShipperRes[[]*entity.Suburb], error)
	GetAreasBySuburbId(ctx context.Context, suburbId int) (*dto.ShipperRes[[]*entity.Area], error)
}

Jump to

Keyboard shortcuts

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