| | |
| | | package com.stylefeng.guns.modular.code.controller; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | |
| | | import com.stylefeng.guns.core.shiro.ShiroKit; |
| | | import com.stylefeng.guns.core.shiro.ShiroUser; |
| | | import com.stylefeng.guns.core.support.HttpKit; |
| | | import com.stylefeng.guns.core.util.HttpUtils; |
| | | import com.stylefeng.guns.core.util.JwtTokenUtil; |
| | | import com.stylefeng.guns.core.util.ToolUtil; |
| | | import com.stylefeng.guns.modular.system.dao.UserMapper; |
| | |
| | | // @ApiOperation(value = "拿token", tags = {"登录"}) |
| | | |
| | | |
| | | /** |
| | | *地图查询 |
| | | */ |
| | | @ResponseBody |
| | | @ApiOperation(value = "地图查询", tags = {"地图查询"}) |
| | | @GetMapping("/base/appUser/queryMap") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "位置", required = true) |
| | | }) |
| | | public ResultUtil queryMap(String name) |
| | | { |
| | | String url ="https://apis.map.qq.com/ws/place/v1/suggestion/?keyword="+name+"&key=AAIBZ-NO7AQ-RKQ5G-2YSBL-3MEJH-VTFH4"; |
| | | String result = HttpUtils.sendGet(url); |
| | | JSONArray data = JSONObject.parseObject(result).getJSONArray("data"); |
| | | return ResultUtil.success(data); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @GetMapping("/base/region/getDistrict") |
| | | @ApiOperation(value = "获取区域数据", tags = {"区域下拉框"}) |