Documentation ¶
Index ¶
- func NewNotification(gc *client.Grpc, cs cache.Shipping) service.Notification
- func NewShipping(rc *resfulclient.Restful, gc *grpcclient.Grpc, sc cache.Shipping) service.Shipping
- type NotificationImpl
- type ShippingImpl
- func (s *ShippingImpl) CreateLabel(ctx context.Context, data *dto.CreateLabelReq) (*dto.ShipperRes[*entity.Label], error)
- func (s *ShippingImpl) GetAreasBySuburbId(ctx context.Context, suburbId int) (*dto.ShipperRes[[]*entity.Area], error)
- func (s *ShippingImpl) GetCitiesByProvinceId(ctx context.Context, provinceId int) (*dto.ShipperRes[[]*entity.City], error)
- func (s *ShippingImpl) GetProvinces(ctx context.Context) (*dto.ShipperRes[[]*entity.Province], error)
- func (s *ShippingImpl) GetSuburbsByCityId(ctx context.Context, cityId int) (*dto.ShipperRes[[]*entity.Suburb], error)
- func (s *ShippingImpl) Pricing(ctx context.Context, data *dto.PricingReq) (*dto.ShipperRes[*entity.Pricing], error)
- func (s *ShippingImpl) RequestPickup(ctx context.Context, shippingIds []string) error
- func (s *ShippingImpl) ShippingOrder(ctx context.Context, data *entity.ShippingOrder) error
- func (s *ShippingImpl) TrackingByShippingId(ctx context.Context, shippingId string) (*entity.Tracking, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNotification ¶
func NewShipping ¶
func NewShipping(rc *resfulclient.Restful, gc *grpcclient.Grpc, sc cache.Shipping) service.Shipping
Types ¶
type NotificationImpl ¶
type NotificationImpl struct {
// contains filtered or unexported fields
}
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 ¶
Click to show internal directories.
Click to hide internal directories.