GetStoreListByLocation

This commit is contained in:
gazebo
2019-10-17 15:39:29 +08:00
parent 2483b33dc1
commit 5492ff0608
5 changed files with 113 additions and 1 deletions

View File

@@ -529,3 +529,18 @@ func (c *StoreController) SyncStoresCourierInfo() {
return retVal, "", err
})
}
// @Title 根据位置得到推荐门店列表
// @Description 根据位置得到推荐门店列表
// @Param token header string true "认证token"
// @Param lng query float64 true "经度"
// @Param lat query float64 true "纬度"
// @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)
return retVal, "", err
})
}