GetStoreListByLocation添加可选参数needWalkDistance

This commit is contained in:
gazebo
2019-10-18 12:03:07 +08:00
parent 2d43b61f6f
commit aa0404c4a1
2 changed files with 27 additions and 3 deletions

View File

@@ -535,12 +535,13 @@ func (c *StoreController) SyncStoresCourierInfo() {
// @Param token header string true "认证token"
// @Param lng query float64 true "经度"
// @Param lat query float64 true "纬度"
// @Param needWalkDistance query bool false "是否需要返回步行距离(且以步行距离排序)"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetStoreListByLocation [get]
func (c *StoreController) GetStoreListByLocation() {
c.callGetStoreListByLocation(func(params *tStoreGetStoreListByLocationParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetStoreListByLocation(params.Ctx, params.Lng, params.Lat)
retVal, err = cms.GetStoreListByLocation(params.Ctx, params.Lng, params.Lat, params.NeedWalkDistance)
return retVal, "", err
})
}