From f195cf48cf57635c8848b2bc32afd4541c4090ed Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期一, 17 七月 2023 08:57:25 +0800
Subject: [PATCH] 更新接口

---
 cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java
index fafa99f..90cf2e4 100644
--- a/cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java
+++ b/cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java
@@ -5,6 +5,7 @@
 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;
@@ -218,4 +219,59 @@
             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();
+        }
+    }
 }

--
Gitblit v1.7.1