| | |
| | | return new ResultBean<>(mapPath); |
| | | } |
| | | |
| | | @GetMapping("redisTest") |
| | | public ResultBean<List<WebProvince>> redisTest(HttpServletRequest request) { |
| | | String token = request.getHeader("token"); |
| | | List<WebProvince> mapPath = mapPathService.getMapPath(token); |
| | | if (ObjectUtils.isEmpty(mapPath)) |
| | | return new ResultBean<>("获取地图信息失败", ResultBean.FAIL); |
| | | return new ResultBean<>(mapPath); |
| | | } |
| | | |
| | | @GetMapping("sqlTest") |
| | | public ResultBean<List<WebProvince>> sqlTest(HttpServletRequest request) { |
| | | String token = request.getHeader("token"); |
| | | List<WebProvince> mapPath = mapPathService.getMapPathTest(token); |
| | | if (ObjectUtils.isEmpty(mapPath)) |
| | | return new ResultBean<>("获取地图信息失败", ResultBean.FAIL); |
| | | return new ResultBean<>(mapPath); |
| | | } |
| | | |
| | | /** |
| | | * @Description: 登陆接口 |
| | | * @Param: [parameters] |