1
This commit is contained in:
@@ -641,16 +641,16 @@ func (c *StoreController) GetStoreListByLocation() {
|
||||
|
||||
// @Title 根据位置得到首页商店详细信息
|
||||
// @Description 根据位置得到首页商店详细信息
|
||||
// @Param lng query float64 true "经度"
|
||||
// @Param lat query float64 true "纬度"
|
||||
// @Param needWalkDistance query bool false "是否需要返回步行距离(且以步行距离排序)"
|
||||
// @Param brandID query int false "品牌ID"
|
||||
// @Param lng query float64 true "经度"
|
||||
// @Param lat query float64 true "纬度"
|
||||
// @Param needWalkDistance query bool false "是否需要返回步行距离(且以步行距离排序)"
|
||||
// @Param brandID query int true "品牌ID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetHomePageByLocation [get]
|
||||
func (c *StoreController) GetHomePageByLocation() {
|
||||
c.callGetHomePageByLocation(func(params *tStoreGetHomePageByLocationParams) (interface{}, string, error) {
|
||||
details, _, err := cms.GetHomePageByLocation(params.Ctx, params.Lng, params.Lat, params.NeedWalkDistance)
|
||||
details, _, err := cms.GetHomePageByLocation(params.Ctx, params.Lng, params.Lat, params.NeedWalkDistance, params.BrandID)
|
||||
if err != nil {
|
||||
return nil, "根据经纬度获取门店详细信息失败", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user