param
This commit is contained in:
@@ -9,7 +9,6 @@ import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/netprinter"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
"github.com/astaxie/beego/server/web"
|
||||
)
|
||||
@@ -64,10 +63,6 @@ func (c *StoreController) GetStores() {
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
globals.SugarLogger.Debug("=================", params.Ctx)
|
||||
globals.SugarLogger.Debug("=================", params.Keyword)
|
||||
globals.SugarLogger.Debug("=================", params.MapData)
|
||||
globals.SugarLogger.Debug("检测数据param", params.Offset, params.PageSize, timeList[0], timeList[1], params.OrderCountFrom, params.OrderCountTo)
|
||||
retVal, err = cms.GetStores(params.Ctx, params.Keyword, params.MapData, params.Offset, params.PageSize, timeList[0], timeList[1], params.OrderCountFrom, params.OrderCountTo)
|
||||
return retVal, "", err
|
||||
})
|
||||
@@ -597,26 +592,28 @@ func (c *StoreController) GetStoreListByLocation() {
|
||||
// @Param token header string false "认证token"
|
||||
// @Param lng query float64 true "经度"
|
||||
// @Param lat query float64 true "纬度"
|
||||
//@Param storeID query string false "门店ID"
|
||||
// @Param needWalkDistance query bool false "是否需要返回步行距离(且以步行距离排序)"
|
||||
// @Param brandID query int false "品牌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) {
|
||||
locationList, err := common.GetStoreListByLocation(params.Ctx, params.Lng, params.Lat, 20000, params.NeedWalkDistance, false, params.BrandID)
|
||||
if err != nil {
|
||||
return nil, "根据经纬度获取商店失败", err
|
||||
}
|
||||
if params.Token != "" {
|
||||
|
||||
//获取店铺基本信息
|
||||
//storeDetail := cms.GetStores(params.Ctx, params.Keyword, params.MapData, params.Offset, params.PageSize, timeList[0], timeList[1], params.OrderCountFrom, params.OrderCountTo)
|
||||
//retVal, err = cms.GetStoreVendorMaps(params.Ctx, nil, utils.Interface2String(), params.VendorID)
|
||||
}
|
||||
return locationList, "", err
|
||||
})
|
||||
}
|
||||
//func (c *StoreController) GetHomePageByLocation() {
|
||||
// c.callGetHomePageByLocation(func(params *tStoreGetHomePageByLocationParams) (interface{}, string, error) {
|
||||
// details, _, err := cms.GetHomePageByLocation(params.Ctx, params.MapData)
|
||||
// if err != nil {
|
||||
// return nil, "根据经纬度获取门店详细信息失败", err
|
||||
// }
|
||||
// if params.Token != "" {
|
||||
// utils.Str2Int()
|
||||
// //获取店铺基本信息
|
||||
// //storeDetail := cms.GetStores(params.Ctx, params.Keyword, params.MapData, params.Offset, params.PageSize, timeList[0], timeList[1], params.OrderCountFrom, params.OrderCountTo)
|
||||
// //retVal, err = cms.GetStoreVendorMaps(params.Ctx, nil, utils.Interface2String(), params.VendorID)
|
||||
// }
|
||||
// //return locationList, "", err
|
||||
// return nil, "", err
|
||||
// })
|
||||
//}
|
||||
|
||||
// @Title 老格恢复拓店进度
|
||||
// @Description 老格恢复拓店进度
|
||||
|
||||
Reference in New Issue
Block a user