This commit is contained in:
苏尹岚
2021-01-06 11:36:11 +08:00
parent 3b095fef4f
commit dbe86ab33b
7 changed files with 49 additions and 6 deletions

View File

@@ -547,12 +547,13 @@ func (c *StoreController) SyncStoresCourierInfo() {
// @Param lng query float64 true "经度"
// @Param lat query float64 true "纬度"
// @Param needWalkDistance query bool false "是否需要返回步行距离(且以步行距离排序)"
// @Param brandID query int false "品牌ID"
// @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 = common.GetStoreListByLocation(params.Ctx, params.Lng, params.Lat, 20000, params.NeedWalkDistance, false)
retVal, err = common.GetStoreListByLocation(params.Ctx, params.Lng, params.Lat, 20000, params.NeedWalkDistance, false, params.BrandID)
return retVal, "", err
})
}

View File

@@ -556,3 +556,18 @@ func (c *User2Controller) GetJxShopUsers() {
return retVal, "", err
})
}
// @Title 更新用户上次浏览门店和品牌
// @Description 更新用户上次浏览门店和品牌
// @Param token header string true "认证token"
// @Param storeID formData int false "门店ID"
// @Param brandID formData int false "品牌ID"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /UpdateUserLastInfo [post]
func (c *User2Controller) UpdateUserLastInfo() {
c.callUpdateUserLastInfo(func(params *tUser2UpdateUserLastInfoParams) (retVal interface{}, errCode string, err error) {
err = cms.UpdateUserLastInfo(params.Ctx, params.StoreID, params.BrandID)
return retVal, "", err
})
}