| | |
| | | import com.yb.config.R; |
| | | import com.yb.entity.ReqEntity; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @Autowired |
| | | WebSocketController webSocketController; |
| | | |
| | | @GetMapping("/poiMap/{place}") |
| | | @PostMapping("/poiMap") |
| | | @Operation(summary = "显示地点") |
| | | public R poiMap(@PathVariable("place")String place){ |
| | | System.out.println("rec message:"+place); |
| | | public R poiMap(@Parameter String place,@Parameter String mid){ |
| | | System.out.println("rec message:"+place+" mid:"+mid); |
| | | HashMap<String,Object> hash = new HashMap<>(); |
| | | hash.put("func","poiMap"); |
| | | hash.put("mid","mid"); |
| | | ReqEntity reqEntity = new ReqEntity(); |
| | | reqEntity.setPlace(place); |
| | | reqEntity.setX("120.9671"); |
| | |
| | | System.out.println("rec message:"+reqEntity); |
| | | HashMap<String,Object> hash = new HashMap<>(); |
| | | hash.put("func","aroundPoi"); |
| | | hash.put("mid","mid"); |
| | | List<ReqEntity> list = new ArrayList<>(); |
| | | reqEntity.setX("120.9671"); |
| | | reqEntity.setY("13.5748"); |
| | |
| | | return R.ok(hash); |
| | | } |
| | | |
| | | @GetMapping("/queryPath/{start_point}/{end_point}") |
| | | /*@GetMapping("/queryPath/{start_point}/{end_point}") |
| | | @Operation(summary = "路线查询") |
| | | public R queryPath(@PathVariable("start_point")String start_point,@PathVariable("end_point")String end_point){ |
| | | System.out.println("rec start_point: "+start_point+" end_point: "+end_point); |
| | | HashMap<String,Object> hash = new HashMap<>(); |
| | | |
| | | hash.put("func","searchPath"); |
| | | List<ReqEntity> list = new ArrayList<>(); |
| | | |
| | |
| | | |
| | | return R.ok(hash); |
| | | } |
| | | |
| | | @GetMapping("/queryMeta") |
| | | */ |
| | | @PostMapping("/queryMeta") |
| | | @Operation(summary = "元信息查询") |
| | | public R queryMeta(){ |
| | | public R queryMeta(@Parameter String mid){ |
| | | System.out.println("queryMeta "); |
| | | HashMap<String,Object> hash = new HashMap<>(); |
| | | hash.put("func","queryMeta"); |
| | | hash.put("mid",mid); |
| | | List<ReqEntity> list = new ArrayList<>(); |
| | | |
| | | hash.put("meta",list); |