| | |
| | | import com.dsh.other.entity.Store; |
| | | import com.dsh.other.feignclient.model.*; |
| | | import com.dsh.other.model.BaseVo; |
| | | import com.dsh.other.model.ProvinceAndCityVo; |
| | | import com.dsh.other.model.QueryStoreList; |
| | | import com.dsh.other.model.StoreFreeBenefitVo; |
| | | import com.dsh.other.service.StoreService; |
| | |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/store/queryProvinceAndCity") |
| | | @ApiOperation(value = "获取省市数据", tags = {"APP-加入玩湃"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "省编号", name = "pcode", dataType = "string", required = false), |
| | | }) |
| | | public ResultUtil<List<ProvinceAndCityVo>> queryProvinceAndCity(String pcode){ |
| | | try { |
| | | List<ProvinceAndCityVo> provinceAndCityVos = storeService.queryProvinceAndCity(pcode); |
| | | return ResultUtil.success(provinceAndCityVos); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/store/queryAllCity") |
| | | @ApiOperation(value = "获取所有开通城市", tags = {"APP-赛事活动列表"}) |
| | | @ApiImplicitParams({ |
| | | }) |
| | | public ResultUtil<List<ProvinceAndCityVo>> queryAllCity(){ |
| | | try { |
| | | List<ProvinceAndCityVo> provinceAndCityVos = storeService.queryAllCity(); |
| | | return ResultUtil.success(provinceAndCityVos); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/base/store/queryStoreByCityCode") |
| | | @ApiOperation(value = "获取城市code获取门店", tags = {"APP-加入玩湃"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "城市code", name = "cityCode", dataType = "string", required = true), |
| | | }) |
| | | public ResultUtil<List<BaseVo>> queryStoreByCityCode(String cityCode){ |
| | | try { |
| | | List<BaseVo> list = storeService.queryStoreByCityCode(cityCode); |
| | | return ResultUtil.success(list); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | } |