Documentation ¶
Overview ¶
*
- Copyright 2014 @ 56x.net.
- name :
- author : jarryliu
- date : 2014-02-14 15:42
- description :
- history :
*
- Copyright 2014 @ 56x.net.
- name :
- author : jarryliu
- date : 2014-02-14 15:37
- description :
- history :
Index ¶
- func NewDelivery(id int32, dlvRepo delivery.IDeliveryRepo) delivery.IDelivery
- type CoverageArea
- func (c *CoverageArea) CanDeliver(lng, lat float64) (bool, int)
- func (c *CoverageArea) CanDeliverTo(address string) (bool, int)
- func (c *CoverageArea) GetDomainId() int32
- func (c *CoverageArea) GetValue() delivery.CoverageValue
- func (c *CoverageArea) Save() (int32, error)
- func (c *CoverageArea) SetValue(v *delivery.CoverageValue) error
- type Delivery
- func (d *Delivery) FindCoverageAreas(lng, lat float64) []delivery.ICoverageArea
- func (d *Delivery) FindSingleCoverageArea(lng, lat float64) delivery.ICoverageArea
- func (d *Delivery) GetAggregateRootId() int32
- func (d *Delivery) GetArea(addr string) ([]*delivery.AreaValue, error)
- func (d *Delivery) GetCoverageArea(id int32) delivery.ICoverageArea
- func (d *Delivery) GetDeliveryInfo(coverageId int32) (shopId, deliverUsrId int32, err error)
- func (d *Delivery) GetMerchantId() int32
- func (d *Delivery) GetNearestCoverage(lng, lat float64) delivery.ICoverageArea
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDelivery ¶
func NewDelivery(id int32, dlvRepo delivery.IDeliveryRepo) delivery.IDelivery
Types ¶
type CoverageArea ¶
type CoverageArea struct {
// contains filtered or unexported fields
}
func (*CoverageArea) CanDeliver ¶
func (c *CoverageArea) CanDeliver(lng, lat float64) (bool, int)
是否可以配送 返回是否可以配送,以及距离(米)
func (*CoverageArea) CanDeliverTo ¶
func (c *CoverageArea) CanDeliverTo(address string) (bool, int)
是否可以配送 返回是否可以配送,以及距离(米)
func (*CoverageArea) GetDomainId ¶
func (c *CoverageArea) GetDomainId() int32
func (*CoverageArea) GetValue ¶
func (c *CoverageArea) GetValue() delivery.CoverageValue
func (*CoverageArea) Save ¶
func (c *CoverageArea) Save() (int32, error)
func (*CoverageArea) SetValue ¶
func (c *CoverageArea) SetValue(v *delivery.CoverageValue) error
type Delivery ¶
type Delivery struct {
// contains filtered or unexported fields
}
func (*Delivery) FindCoverageAreas ¶
func (d *Delivery) FindCoverageAreas(lng, lat float64) []delivery.ICoverageArea
查找所有所在的区域
func (*Delivery) FindSingleCoverageArea ¶
func (d *Delivery) FindSingleCoverageArea(lng, lat float64) delivery.ICoverageArea
查看单个所在的区域
func (*Delivery) GetCoverageArea ¶
func (d *Delivery) GetCoverageArea(id int32) delivery.ICoverageArea
获取覆盖区域
func (*Delivery) GetDeliveryInfo ¶
获取配送信息
func (*Delivery) GetNearestCoverage ¶
func (d *Delivery) GetNearestCoverage(lng, lat float64) delivery.ICoverageArea
获取最近的配送区域
Click to show internal directories.
Click to hide internal directories.