| | |
| | | import com.yb.config.XzConfig; |
| | | import com.yb.entity.ReqEntity; |
| | | import com.yb.service.XzService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Tag(name = "新智接口") |
| | | @RestController |
| | | @RequestMapping("/api/v1") |
| | | @Api(tags = "三个意图") |
| | | public class XzController { |
| | | @Autowired |
| | | WebSocketController webSocketController; |
| | |
| | | @Autowired |
| | | private XzConfig xzConfig; |
| | | |
| | | |
| | | @ApiOperation("显示地点") |
| | | @PostMapping("/poiMap") |
| | | @Operation(summary = "显示地点") |
| | | public R poiMap(@RequestParam Map<String, String> allParams) throws Exception { |
| | |
| | | webSocketController.sendAllMessage(message); |
| | | return R.ok(hash); |
| | | } |
| | | |
| | | @ApiOperation("周边属性查询") |
| | | @PostMapping("/aroundPoi") |
| | | @Operation(summary = "周边属性查询") |
| | | public R aroundPoi(@RequestParam Map<String, String> allParams) throws Exception { |
| | |
| | | webSocketController.sendAllMessage(message); |
| | | return R.ok(hash); |
| | | } |
| | | |
| | | @ApiOperation("元信息查询") |
| | | @PostMapping("/queryMeta") |
| | | @Operation(summary = "元信息查询") |
| | | public R queryMeta(@RequestParam Map<String, String> allParams) { |