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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNotification

func NewNotification(gc *client.Grpc, cs cache.Shipping) service.Notification

Types

type NotificationImpl

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

func (*NotificationImpl) Shipper

func (n *NotificationImpl) Shipper(ctx context.Context, data *entity.Shipper) (err error)

type ShippingImpl

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

func (*ShippingImpl) CreateLabel

func (s *ShippingImpl) CreateLabel(ctx context.Context, data *dto.CreateLabelReq) (*dto.ShipperRes[*entity.Label], error)

func (*ShippingImpl) GetAreasBySuburbId

func (s *ShippingImpl) GetAreasBySuburbId(ctx context.Context, suburbId int) (*dto.ShipperRes[[]*entity.Area], error)

func (*ShippingImpl) GetCitiesByProvinceId

func (s *ShippingImpl) GetCitiesByProvinceId(ctx context.Context, provinceId int) (*dto.ShipperRes[[]*entity.City], error)

func (*ShippingImpl) GetProvinces

func (s *ShippingImpl) GetProvinces(ctx context.Context) (*dto.ShipperRes[[]*entity.Province], error)

func (*ShippingImpl) GetSuburbsByCityId

func (s *ShippingImpl) GetSuburbsByCityId(ctx context.Context, cityId int) (*dto.ShipperRes[[]*entity.Suburb], error)

func (*ShippingImpl) Pricing

func (s *ShippingImpl) Pricing(ctx context.Context, data *dto.PricingReq) (*dto.ShipperRes[*entity.Pricing], error)

func (*ShippingImpl) RequestPickup

func (s *ShippingImpl) RequestPickup(ctx context.Context, shippingIds []string) error

func (*ShippingImpl) ShippingOrder

func (s *ShippingImpl) ShippingOrder(ctx context.Context, data *entity.ShippingOrder) error

func (*ShippingImpl) TrackingByShippingId

func (s *ShippingImpl) TrackingByShippingId(ctx context.Context, shippingId string) (*entity.Tracking, error)

Jump to

Keyboard shortcuts

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